blueetl.adapters.circuit

Adapters for Circuit.

Classes

CircuitAdapter(_impl)

Circuit Adapter.

class blueetl.adapters.circuit.CircuitAdapter(_impl: InterfaceT | None)

Bases: BaseAdapter[CircuitInterface]

Circuit Adapter.

Init the adapter from the specified implementation.

checksum() str

Return a checksum of the relevant keys in the circuit configuration.

classmethod from_file(filepath: Path | None) CircuitAdapter

Load and return a new object from file.

property node_sets: NodeSetsAdapter

Returns the NodeSets file used by the circuit.

property node_sets_file: Path | None

Returns the NodeSets file used by the circuit.

property nodes: Mapping[str | None, NodePopulationInterface]

population -> nodes.

Type:

Return the nodes as a dict