spellings
Warning
This documentaion page is comprehensive.
Recommended way of using this doc page is the search function (strg+f)
Checking if a certain spelling is supported i.e. variable_cost for
reading in flow cost data is done by prgogramatically browsing this page:
Press
strg+fType
variable_costIf nothing is found renaming the key is recommended
If somehting is found, check the table heading (
flow_costsin this example)Use this key as parameter for
get_from.smth_liketo mapvariable_costtoflow_costsfor reading in and succesfully parsing data.
Auxiliaries
Map different spellings of the same string key to one specific spelling. |
|
Store an |
|
Seperators used for combined string expressions. |
|
Variation base keys used for creating possible spellings. |
Supported Models
Supported |
|
Supported |
|
Supported |
|
Supported |
Unique Identifiers Components (Parts making up the UID)
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
Time Serieses
Supported |
|
Supported |
|
Supported |
Global Constraints
Supported |
TESSiF’s Energy System Model
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
Component Parameters as Singular Values
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
Input Output Seperation
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
Component Parameters as Series Values
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
Oemof Specific Component Parameters
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
Energy System Component Identifers
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
Energy System Component Identifers - Energy Carrier
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
Energy System Component Identifers - Sector
Supported |
|
Supported |
|
Supported |
|
Supported |
Energy System Component Identifers - Label
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
|
Supported |
Auxilliaries
spellings is a tessif subpackage aggregating
aliases and variations tessif is able to parse as expected during data input.
It serves as tessif's main data input abstraction mechanism.
Expanding these capabilities is best done here.
- tessif.frused.spellings.to_csv(iterable, name, columns=4, path=None, **kwargs)[source]
Store an
iterableundername.csvhaving ncolumnsintessif/frused/spellings/name.csv.- Parameters:
iterable¶ (
Iterable) – The iterable used for constructing the csv table.name¶ (str) – Table is stored in
tessif/../doc/source/api/frused/spellings/name.csvcolumns¶ (int, default=4) – Number of columns the csv table will have
String representation of the path the csv is written to. Default of
Nonetranslates to:tessif_doc/source/api/frused/spellings/name.csv
kwargs¶ –
kwargs are passed to pandas.DataFrame.to_csv
Note
indexandheaderare set toFalseby default. Provide parameters for overriding those if needed.
- tessif.frused.spellings.get_from(dct, smth_like, dflt=None)[source]
Map different spellings of the same string key to one specific spelling.
Get
smth_likefrom the string keyeddctotherwise returndflt.Used through out tessif to allow a wide variaty of string mappings for descibing the same thing. Whenn accessing (somewhat) unknown or unfamiliar input data sources.
- Parameters:
dct¶ (dict) – Dictionairy to key key with something that looks like
smth_likesmth_like¶ (str) – string representation of a key of which an identically named attribute is to be found in
tessif.frused.spellings.dflt¶ (value, default=None,) – value to return when no appropriate spelling exists in
tessif.frused.spellingsor no spelling variation of this key is present indct
Note
A detailed debugging log is created to help with this sometimes error prone approach to allow arbitrarily many spellings for the same set of data.
All logs can be found in
tessif.write.logsThe logging level can be tweaked using
configurations.spellings_logging_level.Examples
Design Case:
>>> from tessif.frused import spellings >>> lookup = {'CO2 Emissions': 10,} >>> print(get_from(lookup, smth_like='emissions')) 10
Unsuccessful matching between spellings variation and dict keys:
>>> from tessif.frused import spellings >>> lookup = {'CO2 Emissions': 10,} >>> print(get_from(lookup, smth_like='timeindex', dflt='Failed')) Failed
Unsuccessful matching between smth_like and hardcoded mappings:
>>> from tessif.frused import spellings >>> lookup = {'CO2 Emissions': 10,} >>> print(get_from(lookup, smth_like='co2_emissions', dflt='42')) 42
- tessif.frused.spellings.seperators
Seperators used for combined string expressions.
- tessif.frused.spellings.variation_base
Variation base keys used for creating possible spellings.
Each of the following strings is a key to a “many->one” string representation mapping.
There is an identically named attribute for each mapping in
tessif.frused.spellings.
Supported Models
- tessif.frused.spellings.calliope
Supported
calliopespellings
- tessif.frused.spellings.fine
Supported
finespellings
- tessif.frused.spellings.oemof
Supported
oemofspellings
- tessif.frused.spellings.pypsa
Supported
pypsaspellings
Unique Identifiers Components (Parts making up the UID)
- tessif.frused.spellings.name
Supported
namespellings
- tessif.frused.spellings.latitude
Supported
latitudespellings
- tessif.frused.spellings.longitude
Supported
longitudespellings
- tessif.frused.spellings.region
Supported
regionspellings
- tessif.frused.spellings.sector
Supported
sectorspellings
- tessif.frused.spellings.carrier
Supported
carrierspellings
- tessif.frused.spellings.node_type
Supported
node_typespellings
Time Serieses
- tessif.frused.spellings.timeframe
Supported
timeframespellings
- tessif.frused.spellings.timeindex
Supported
timeindexspellings
- tessif.frused.spellings.timeseries
Supported
timeseriesspellings
Global Constraints
- tessif.frused.spellings.global_constraints
Supported
global_constraintsspellings
TESSiF’s Energy System Model
- tessif.frused.spellings.accumulated_amounts
Supported
accumulated_amountsspellings
- tessif.frused.spellings.costs_for_being_active
Supported
costs_for_being_activespellings
- tessif.frused.spellings.expandable
Supported
expandablespellings
- tessif.frused.spellings.expansion_costs
Supported
expansion_costsspellings
- tessif.frused.spellings.expansion_limits
Supported
expansion_limitsspellings
- tessif.frused.spellings.flow_costs
Supported
flow_costsspellings
- tessif.frused.spellings.flow_emissions
Supported
flow_emissionsspellings
- tessif.frused.spellings.flow_gradients
Supported
flow_gradientsspellings
- tessif.frused.spellings.flow_rates
Supported
flow_ratesspellings
- tessif.frused.spellings.gradient_costs
Supported
gradient_costsspellings
- tessif.frused.spellings.idle_changes
Supported
idle_changesspellings
- tessif.frused.spellings.initial_soc
Supported
initial_socspellings
- tessif.frused.spellings.initial_status
Supported
initial_statusspellings
- tessif.frused.spellings.inputs
Supported
inputsspellings
- tessif.frused.spellings.number_of_status_changes
Supported
number_of_status_changesspellings
- tessif.frused.spellings.status_inertia
Supported
status_inertiaspellings
- tessif.frused.spellings.status_changing_costs
Supported
status_changing_costsspellings
- tessif.frused.spellings.outputs
Supported
outputsspellings
Component Parameters as Singular Values
- tessif.frused.spellings.active
Supported
activespellings
- tessif.frused.spellings.accumulated_maximum
Supported
accumulated_maximumspellings
- tessif.frused.spellings.accumulated_minimum
Supported
accumulated_minimumspellings
- tessif.frused.spellings.efficiency
Supported
efficiencyspellings
- tessif.frused.spellings.emissions
Supported
emissionsspellings
- tessif.frused.spellings.exogenously_set
Supported
exogenously_setspellings
- tessif.frused.spellings.exogenously_set_value
Supported
exogenously_set_valuespellings
- tessif.frused.spellings.expansion_problem
Supported
expansion_problemspellings
- tessif.frused.spellings.gain_rate
Supported
gain_ratespellings
- tessif.frused.spellings.input
Supported
inputspellings
- tessif.frused.spellings.installed_capacity
Supported
installed_capacityspellings
- tessif.frused.spellings.loss_rate
Supported
loss_ratespellings
- tessif.frused.spellings.maximum
Supported
maximumspellings
- tessif.frused.spellings.maximum_expansion
Supported
maximum_expansionspellings
- tessif.frused.spellings.maximum_efficiency
Supported
maximum_efficiencyspellings
- tessif.frused.spellings.minimum
Supported
minimumspellings
- tessif.frused.spellings.minimum_efficiency
Supported
minimum_efficiencyspellings
- tessif.frused.spellings.minimum_expansion
Supported
minimum_expansionspellings
- tessif.frused.spellings.minimum_downtime
Supported
minimum_downtimespellings
- tessif.frused.spellings.minimum_uptime
Supported
minimum_uptimespellings- . csv-table::
- file:
source/api/frused/spellings/minimum_uptime.csv
- tessif.frused.spellings.negative_gradient
Supported
negative_gradientspellings
- tessif.frused.spellings.negative_gradient_costs
Supported
negative_gradient_costsspellings
- tessif.frused.spellings.output
Supported
outputspellings
- tessif.frused.spellings.positive_gradient
Supported
positive_gradientspellings
- tessif.frused.spellings.positive_gradient_costs
Supported
positive_gradient_costsspellings
- tessif.frused.spellings.shutdown_costs
Supported
shutdown_costsspellings
- tessif.frused.spellings.startup_costs
Supported
startup_costsspellings
- tessif.frused.spellings.storage_capacity
Supported
storage_capacityspellings
Singular Value Input Output Seperation
- tessif.frused.spellings.inflow_costs
Supported
inflow_costsspellings
- tessif.frused.spellings.inflow_efficiency
Supported
inflow_efficiencyspellings
- tessif.frused.spellings.inflow_emissions
Supported
inflow_emissionsspellings
- tessif.frused.spellings.input_maximum
Supported
input_maximumspellings
- tessif.frused.spellings.input_minimum
Supported
input_minimumspellings
- tessif.frused.spellings.input_negative_gradient
Supported
input_negative_gradientspellings
- tessif.frused.spellings.input_positive_gradient
Supported
input_positive_gradientspellings
- tessif.frused.spellings.outflow_costs
Supported
outflow_costsspellings
- tessif.frused.spellings.outflow_efficiency
Supported
outflow_efficiencyspellings
- tessif.frused.spellings.outflow_emissions
Supported
outflow_emissionsspellings
- tessif.frused.spellings.output_maximum
Supported
output_maximumspellings
- tessif.frused.spellings.output_minimum
Supported
output_minimumspellings
- tessif.frused.spellings.output_negative_gradient
Supported
output_negative_gradientspellings
- tessif.frused.spellings.output_positive_gradient
Supported
output_positive_gradientspellings
Component Parameters as Series Values
- tessif.frused.spellings.efficiencyN
Supported
efficiencyNspellings
- tessif.frused.spellings.emissionsN
Supported
emissionsNspellings
- tessif.frused.spellings.flow_costsN
Supported
flow_costsNspellings
- tessif.frused.spellings.fractionN
Supported
fractionNspellings
- tessif.frused.spellings.inflow_costsN
Supported
inflow_costsNspellings
- tessif.frused.spellings.inflow_emissionsN
Supported
inflow_emissionsNspellings
- tessif.frused.spellings.inputN
Supported
inputNspellings
- tessif.frused.spellings.outflow_costsN
Supported
outflow_costsNspellings
- tessif.frused.spellings.outflow_emissionsN
Supported
outflow_emissionsNspellings
- tessif.frused.spellings.outputN
Supported
outputNspellings
Oemof Specific Component Parameters
- tessif.frused.spellings.already_installed
Supported
already_installedspellings
- tessif.frused.spellings.back_pressure
Supported
back_pressurespellings
- tessif.frused.spellings.fraction
Supported
fractionspellings
- tessif.frused.spellings.fuel_in
Supported
fuel_inspellings
- tessif.frused.spellings.fuelgas_losses
Supported
fuelgas_lossesspellings
- tessif.frused.spellings.heat_costs
Supported
heat_costsspellings
- tessif.frused.spellings.heat_efficiency
Supported
heat_efficiencyspellings
- tessif.frused.spellings.heat_emissions
Supported
heat_emissionsspellings
- tessif.frused.spellings.heat_in
Supported
heat_inspellings
- tessif.frused.spellings.heat_out
Supported
heat_outspellings
- tessif.frused.spellings.ideal
Supported
idealspellings
- tessif.frused.spellings.lower_heating_value
Supported
lower_heating_valuespellings
- tessif.frused.spellings.maximum_extraction
Supported
maximum_extractionspellings
- tessif.frused.spellings.maximum_fuelgas_losses
Supported
maximum_fuelgas_lossesspellings
- tessif.frused.spellings.maximum_heat
Supported
maximum_heatspellings
- tessif.frused.spellings.maximum_power
Supported
maximum_powerspellings
- tessif.frused.spellings.milp
Supported
milpspellings
- tessif.frused.spellings.minimum_extraction
Supported
minimum_extractionspellings
- tessif.frused.spellings.minimum_fuelgas_losses
Supported
minimum_fuelgas_lossesspellings
- tessif.frused.spellings.minimum_heat
Supported
minimum_heatspellings
- tessif.frused.spellings.minimum_power
Supported
minimum_powerspellings
- tessif.frused.spellings.nominal_value
Supported
nominal_valuespellings
- tessif.frused.spellings.number_of_connections
Supported
number_of_connectionsspellings
- tessif.frused.spellings.power_costs
Supported
power_costsspellings
- tessif.frused.spellings.power_efficiency
Supported
power_efficiencyspellings
- tessif.frused.spellings.power_emissions
Supported
power_emissionsspellings
- tessif.frused.spellings.power_loss_index
Supported
power_loss_indexspellings
- tessif.frused.spellings.power_out
Supported
power_outspellings
- tessif.frused.spellings.upper_heating_value
Supported
upper_heating_valuespellings
Energy System Component Identifiers
- tessif.frused.spellings.energy_system_component_identifiers
Recognized node name representations.
Energy System Component Identifers
- tessif.frused.spellings.bus
Supported
busspellings
- tessif.frused.spellings.sink
Supported
sinkspellings
- tessif.frused.spellings.storage
Supported
storagespellings
- tessif.frused.spellings.source
Supported
sourcespellings
- tessif.frused.spellings.transformer
Supported
transformerspellings
- tessif.frused.spellings.connector
Supported
connectorspellings
Energy System Component Identifers - Energy Carrier
- tessif.frused.spellings.solar
Supported
solarspellings
- tessif.frused.spellings.wind
Supported
windspellings
- tessif.frused.spellings.water
Supported
waterspellings
- tessif.frused.spellings.biomass
Supported
biomassspellings
- tessif.frused.spellings.commodity
Supported
commodityspellings
- tessif.frused.spellings.gas
Supported
gasspellings
- tessif.frused.spellings.oil
Supported
oilspellings
- tessif.frused.spellings.lignite
Supported
lignitespellings
- tessif.frused.spellings.hardcoal
Supported
hardcoalspellings
- tessif.frused.spellings.nuclear
Supported
nuclearspellings
- tessif.frused.spellings.electricity
Supported
electricityspellings
- tessif.frused.spellings.hot_water
Supported
hot_waterspellings
- tessif.frused.spellings.steam
Supported
steamspellings
Energy System Component Identifers - Sector
- tessif.frused.spellings.power
Supported
powerspellings
- tessif.frused.spellings.heat
Supported
heatspellings
- tessif.frused.spellings.mobility
Supported
mobilityspellings
- tessif.frused.spellings.coupled
Supported
coupledspellings
Energy System Component Identifers - Label
- tessif.frused.spellings.renewables
Supported
renewablesspellings
- tessif.frused.spellings.photovoltaic
Supported
photovoltaicspellings
- tessif.frused.spellings.solarthermal
Supported
solarthermalspellings
- tessif.frused.spellings.onshore
Supported
onshorespellings
- tessif.frused.spellings.offshore
Supported
offshorespellings
- tessif.frused.spellings.hydro_electric
Supported
hydro_electricspellings
- tessif.frused.spellings.mimo_transformer
Supported
mimo_transformerspellings
- tessif.frused.spellings.sito_flex_transformer
Supported
sito_flex_transformerspellings
- tessif.frused.spellings.generic_chp
Supported
generic_chpspellings
- tessif.frused.spellings.siso_nonlinear_transformer
Supported
siso_nonlinear_transformerspellings
- tessif.frused.spellings.combined_heat_power
Supported
combined_heat_powerspellings
- tessif.frused.spellings.power_plant
Supported
power_plantspellings
- tessif.frused.spellings.heat_plant
Supported
heat_plantspellings
- tessif.frused.spellings.electrical_line
Supported
electrical_linespellings
- tessif.frused.spellings.gas_pipeline
Supported
gas_pipelinespellings
- tessif.frused.spellings.gas_delivery
Supported
gas_deliveryspellings
- tessif.frused.spellings.oil_pipeline
Supported
oil_pipelinespellings
- tessif.frused.spellings.oil_delivery
Supported
oil_deliveryspellings
- tessif.frused.spellings.generic_storage
Supported
generic_storagespellings
- tessif.frused.spellings.hydro_electrical_storage
Supported
hydro_electrical_storagespellings
- tessif.frused.spellings.electro_chemical_storage
Supported
electro_chemical_storagespellings
- tessif.frused.spellings.electro_mechanical_storage
Supported
electro_mechanical_storagespellings
- tessif.frused.spellings.thermal_energy_storage
Supported
thermal_energy_storagespellings
- tessif.frused.spellings.power2x
Supported
power2xspellings
- tessif.frused.spellings.imported
Supported
importedspellings
- tessif.frused.spellings.backup
Supported
backupspellings
- tessif.frused.spellings.export
Supported
exportspellings
- tessif.frused.spellings.excess
Supported
excessspellings