{ "cells": [ { "cell_type": "markdown", "id": "d68b06d5", "metadata": {}, "source": [ "# List of result methods\n", "\n", "This list is not complete" ] }, { "cell_type": "code", "execution_count": 1, "id": "545f6a1e", "metadata": { "execution": { "iopub.execute_input": "2026-03-24T13:42:35.528408Z", "iopub.status.busy": "2026-03-24T13:42:35.527725Z", "iopub.status.idle": "2026-03-24T13:42:35.884891Z", "shell.execute_reply": "2026-03-24T13:42:35.884170Z" } }, "outputs": [ { "data": { "text/plain": [ "'pyltm 0.21.0'" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
whatreturn_typenameargumentsdescription
0batteryPyltmResultsum_energy[time_axis = true # Time axis included in results.]Battery module sum energy
1batteryPyltmResultsum_power_production[time_axis = true # Time axis included in results.]Battery module sum power production
2busbarstringbuild_connection_tree[]Create a directed acyclic graph in GraphViz dot format
3busbarboolhave_aggregated_hydro_results[]Returns true if busbar has aggregated hydro results and is not a battery busbar. Result is only valid if the object is part of a model.
4busbarboolhave_battery_results[]Returns true if the busbar has battery results
5busbarboolhave_detailed_hydro_results[]Returns true if the busbar has detailed hydro results
6busbarboolhave_hydraulic_coupling_results[]Returns true if there are results from hydraulic couplings type 200 or type 300. Result is only valid if the object is part of a model.
7busbarboolhave_market_results[]Returns true if the busbar has market results
8busbarboolhave_water_value_results[]Returns true if the busbar has water value results
9busbarlist[HydraulicCoupling]hydraulic_couplings[]A list of hydraulic couplings connected to this busbar
10busbarPyltmResultmarket_result_price[time_axis = true # Time axis included in results.]Busbar market results over time
11busbarlist[Reservoir]reservoirs[]A list of reservoirs (with plants) connected to this busbar
12busbarPyltmResultsum_hydro_production[time_axis = true # Time axis included in results.]Busbar sum hydro production steps over time
13busbarPyltmResultsum_load[time_axis = true # Time axis included in results.]Busbar sum load filling over time
14busbarPyltmResultsum_power_used_for_pumping[time_axis = true # Time axis included in results.]Aggregated sum of power used to pump in the busbar
15busbarPyltmResultsum_production_from_market_steps[time_axis = true # Time axis included in results.]Busbar sum production from market steps over time
16busbarPyltmResultsum_pumped_power[time_axis = true # Time axis included in results.]Aggregated sum of power stored with pumping
17busbarPyltmResultsum_reservoir[time_axis = true # Time axis included in results.]Busbar sum reservoir filling over time
18busbarPyltmResultwater_value_results[time_axis = true # Time axis included in results.]Water values for busbar
19cnePyltmResultget_dual_values[time_axis = true # Time axis included in results.]FBMC dual values. Results are only valid with model type EMPS.
20cnePyltmResultget_flow_values[time_axis = true # Time axis included in results.]FBMC flow values. Results are only valid with model type EMPS.
21dclineboolhave_transmission_results[]Returns true if there are valid transmission results for this DCLine
22dclinePyltmResulttransmission_results[time_axis = true # Time axis included in results.]Transmission results for DCLine
23enmagPyltmResultsum_hydro_energy[time_axis = true # Time axis included in results.]Aggregated hydro module sum hydro energy
24enmagPyltmResultsum_hydro_power_production[time_axis = true # Time axis included in results.]Aggregated hydro module sum hydro power production
25hydraulic_couplinglist[Reservoir]connected_reservoirs[]For a non-station joined hydraulic coupling (type 200 or 300), returns connected reservoirs.
26hydraulic_couplingPyltmResultdischarge[time_axis = true # Time axis included in results.]Hydraulic coupling discharge. Only relevant if HC is connected to a plant.
27hydraulic_couplingboolhave_hydraulic_flow_results[]Are there hydraulic flow results available for this hydraulic coupling. Only available in EOPS, and with a license enabling hydraulic flow results.
28hydraulic_couplingPyltmResultproduction[time_axis = true # Time axis included in results.]Hydraulic coupling production. Only relevant if HC is connected to a plant.
29reservoirPyltmResultbypass[time_axis = true # Time axis included in results.]Reservoir bypass over time (price segment resolution).
30reservoirPyltmResultdischarge[time_axis = true # Time axis included in results.]Reservoir discharge over time (price segment resolution).
31reservoirPyltmResultflow[time_axis = true # Time axis included in results.]Flow exchange results for hydraulic coupling. Only available with EOPS, and a license enabling flow exchange results.
32reservoirPyltmResultinflow[time_axis = true # Time axis included in results.]Reservoir inflow over time (price segment resolution).
33reservoirPyltmResultproduction[time_axis = true # Time axis included in results.]Reservoir/plant production over time (price segment resolution).
34reservoirPyltmResultreservoir[time_axis = true # Time axis included in results.]Reservoir filling over time (price segment resolution).
35reservoirPyltmResultspill[time_axis = true # Time axis included in results.]Reservoir spill over time (price segment resolution).
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# Print attributes\n", "from IPython.display import HTML, display\n", "import pyltm\n", "import pandas as pd\n", "from importlib.metadata import version\n", "\n", "def show_ltmapi_result_methods():\n", " result_methods = pyltm.LtmApiModule.results()\n", " frame = pd.DataFrame(result_methods)\n", " display(HTML(frame.to_html()))\n", "\n", " \n", "display(f\"pyltm {version(\"pyltm\")}\")\n", "\n", "show_ltmapi_result_methods()" ] } ], "metadata": { "kernelspec": { "display_name": "ltmio-3.14", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.13.12" } }, "nbformat": 4, "nbformat_minor": 5 }