LtmApiModel
class pyltm.LtmApiModelProperties¶
| Property | Description | Required |
|---|---|---|
discrepancies | If there are any validation errors, the discrepancies will be available through this list. | |
exporter | ||
global_settings |
Methods¶
add¶
add(*args, **kwargs)Overloaded function.
add(self: pyltm.LtmApiModel, what: str, name: str, data: json = None) -> objectadd(self: pyltm.LtmApiModel, object: Union[pyltm.Area, pyltm.MarketStep, pyltm.DCLine, pyltm.Load, pyltm.Wind, pyltm.Solar, pyltm.BatteryModule, pyltm.UncontrollableGeneration, pyltm.UncontrollableGenerationSeries, pyltm.AggregatedHydroModule, pyltm.Bypass, pyltm.HydraulicCoupling, pyltm.Spill, pyltm.Reservoir, pyltm.Plant, pyltm.Pump, pyltm.MarketCalibrationArea, pyltm.Inflow, pyltm.MainPriceSeries, pyltm.SecondaryPriceSeries, pyltm.BiddingZone, pyltm.CriticalNetworkElement, pyltm.Line, pyltm.LineOutage, pyltm.Busbar, pyltm.TwoWindingTransformer, pyltm.MonitoredNetworkElement, pyltm.HvdcConnection, pyltm.RunConfig, pyltm.Watercourse]) -> Union[pyltm.Area, pyltm.MarketStep, pyltm.DCLine, pyltm.Load, pyltm.Wind, pyltm.Solar, pyltm.BatteryModule, pyltm.UncontrollableGeneration, pyltm.UncontrollableGenerationSeries, pyltm.AggregatedHydroModule, pyltm.Bypass, pyltm.HydraulicCoupling, pyltm.Spill, pyltm.Reservoir, pyltm.Plant, pyltm.Pump, pyltm.MarketCalibrationArea, pyltm.Inflow, pyltm.MainPriceSeries, pyltm.SecondaryPriceSeries, pyltm.BiddingZone, pyltm.CriticalNetworkElement, pyltm.Line, pyltm.LineOutage, pyltm.Busbar, pyltm.TwoWindingTransformer, pyltm.MonitoredNetworkElement, pyltm.HvdcConnection, pyltm.RunConfig, pyltm.Watercourse]aggregated_hydro_modules¶
aggregated_hydro_modules(self: pyltm.LtmApiModel) -> list[pyltm.AggregatedHydroModule]areas¶
areas(self: pyltm.LtmApiModel) -> list[pyltm.Area]battery_modules¶
battery_modules(self: pyltm.LtmApiModel) -> list[pyltm.BatteryModule]calculate_residual_load¶
calculate_residual_load(self: pyltm.LtmApiModel, sample_rate: datetime.timedelta = datetime.timedelta(seconds=3600), output_resolution: datetime.timedelta = datetime.timedelta(days=364)) -> jsonCalculates the residual loads for all scenarios with the given sample rate and output resolution
cnes¶
cnes(self: pyltm.LtmApiModel) -> list[pyltm.CriticalNetworkElement]dclines¶
dclines(self: pyltm.LtmApiModel) -> list[pyltm.DCLine]find¶
find(self: pyltm.LtmApiModel, partial_name: str) -> list[pyltm.Area | pyltm.MarketStep | pyltm.DCLine | pyltm.Load | pyltm.Wind | pyltm.Solar | pyltm.BatteryModule | pyltm.UncontrollableGeneration | pyltm.UncontrollableGenerationSeries | pyltm.AggregatedHydroModule | pyltm.Bypass | pyltm.HydraulicCoupling | pyltm.Spill | pyltm.Reservoir | pyltm.Plant | pyltm.Pump | pyltm.MarketCalibrationArea | pyltm.Inflow | pyltm.MainPriceSeries | pyltm.SecondaryPriceSeries | pyltm.BiddingZone | pyltm.CriticalNetworkElement | pyltm.Line | pyltm.LineOutage | pyltm.Busbar | pyltm.TwoWindingTransformer | pyltm.MonitoredNetworkElement | pyltm.HvdcConnection | pyltm.RunConfig | pyltm.Watercourse]Finds all objects with partial_name in the name. Returns a list of objects.
Example:
objects = session.model.find("needle")
get¶
get(self: pyltm.LtmApiModel, what: str, name: str) -> pyltm.Area | pyltm.MarketStep | pyltm.DCLine | pyltm.Load | pyltm.Wind | pyltm.Solar | pyltm.BatteryModule | pyltm.UncontrollableGeneration | pyltm.UncontrollableGenerationSeries | pyltm.AggregatedHydroModule | pyltm.Bypass | pyltm.HydraulicCoupling | pyltm.Spill | pyltm.Reservoir | pyltm.Plant | pyltm.Pump | pyltm.MarketCalibrationArea | pyltm.Inflow | pyltm.MainPriceSeries | pyltm.SecondaryPriceSeries | pyltm.BiddingZone | pyltm.CriticalNetworkElement | pyltm.Line | pyltm.LineOutage | pyltm.Busbar | pyltm.TwoWindingTransformer | pyltm.MonitoredNetworkElement | pyltm.HvdcConnection | pyltm.RunConfig | pyltm.Watercourse | NoneGets an object from the model. If the object does not exist, None is returned.
Example:
plant: Plant = session.model.get("plant", "plant1")
get_discharges¶
get_discharges(self: pyltm.LtmApiModel, reservoir: pyltm.Reservoir) -> dict[str, int]Returns a dictionary with discharge, bypass, and spill module numbers for the a given reservoir
loads¶
loads(self: pyltm.LtmApiModel) -> list[pyltm.Load]market_calibration_areas¶
market_calibration_areas(self: pyltm.LtmApiModel) -> list[pyltm.MarketCalibrationArea]market_steps¶
market_steps(self: pyltm.LtmApiModel) -> list[pyltm.MarketStep]remove¶
remove(self: pyltm.LtmApiModel, object: pyltm.Area | pyltm.MarketStep | pyltm.DCLine | pyltm.Load | pyltm.Wind | pyltm.Solar | pyltm.BatteryModule | pyltm.UncontrollableGeneration | pyltm.UncontrollableGenerationSeries | pyltm.AggregatedHydroModule | pyltm.Bypass | pyltm.HydraulicCoupling | pyltm.Spill | pyltm.Reservoir | pyltm.Plant | pyltm.Pump | pyltm.MarketCalibrationArea | pyltm.Inflow | pyltm.MainPriceSeries | pyltm.SecondaryPriceSeries | pyltm.BiddingZone | pyltm.CriticalNetworkElement | pyltm.Line | pyltm.LineOutage | pyltm.Busbar | pyltm.TwoWindingTransformer | pyltm.MonitoredNetworkElement | pyltm.HvdcConnection | pyltm.RunConfig | pyltm.Watercourse) -> pyltm.Area | pyltm.MarketStep | pyltm.DCLine | pyltm.Load | pyltm.Wind | pyltm.Solar | pyltm.BatteryModule | pyltm.UncontrollableGeneration | pyltm.UncontrollableGenerationSeries | pyltm.AggregatedHydroModule | pyltm.Bypass | pyltm.HydraulicCoupling | pyltm.Spill | pyltm.Reservoir | pyltm.Plant | pyltm.Pump | pyltm.MarketCalibrationArea | pyltm.Inflow | pyltm.MainPriceSeries | pyltm.SecondaryPriceSeries | pyltm.BiddingZone | pyltm.CriticalNetworkElement | pyltm.Line | pyltm.LineOutage | pyltm.Busbar | pyltm.TwoWindingTransformer | pyltm.MonitoredNetworkElement | pyltm.HvdcConnection | pyltm.RunConfig | pyltm.Watercourse | Nonesolar¶
solar(self: pyltm.LtmApiModel) -> list[pyltm.Solar]uncontrollable_generation¶
uncontrollable_generation(self: pyltm.LtmApiModel) -> list[pyltm.UncontrollableGeneration]wind¶
wind(self: pyltm.LtmApiModel) -> list[pyltm.Wind]