deflex.DeflexScenario.table2es

DeflexScenario.table2es()

Create a populated solph.EnergySystem from the input data.

The EnergySystem object will be stored in the es attribute of the DeflexScenario.

This method is included in the compute() method and is only needed for advanced usage.

Examples

>>> import deflex as dflx
>>> fn = dflx.fetch_test_files("de02_no-heat_csv")
>>> sc = dflx.create_scenario(fn, "csv")
>>> sc.es is None
True
>>> sc.table2es()
>>> type(sc.es)
<class 'oemof.solph.network.energy_system.EnergySystem'>