akkudoktoreos.core.coreabc.DevicesMixin
- class akkudoktoreos.core.coreabc.DevicesMixin
Bases:
objectMixin class for managing EOS devices simulation data.
This class serves as a foundational component for EOS-related classes requiring access to global devices simulation data. It provides a devices property that dynamically retrieves the devices instance, ensuring up-to-date access to devices simulation results.
- Usage:
Subclass this base class to gain access to the devices attribute, which retrieves the global devices instance lazily to avoid import-time circular dependencies.
Example
```python class MyOptimizationClass(DevicesMixin):
- def analyze_mydevicesimulation(self):
device_simulation_data = self.devices.mydevicesresult # Perform analysis
- __init__()
Methods
__init__()Attributes
Convenience method/ attribute to retrieve the EOS devices simulation data.