tools
¶
nrgise.tools.get_component_powers_from_results
¶
get_component_powers_from_results(
energy_system: EnergySystem, results: DataFrame
) -> pd.DataFrame
Convenience function to extract per-component power values from simulation results.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
energy_system
|
EnergySystem
|
Energy system the results belong to. |
required |
results
|
DataFrame
|
Simulation results. |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
filtered results only containing power values. |
nrgise.tools.stretch_data_profile
¶
stretch_data_profile(
data_profile: GenericSequence,
date_time_index: DatetimeIndex,
target_end_date: Timestamp,
) -> Tuple[GenericSequence, pd.DatetimeIndex]
Stretches a data profile by repeating until given target_end_date. Can be used if you only
have a single year of data but want to simulate multiple years (e.g. to consider into aging effects of batteries).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_profile
|
GenericSequence
|
The data profile to stretch. |
required |
date_time_index
|
DatetimeIndex
|
The time index of the data profile. |
required |
target_end_date
|
Timestamp
|
The end date of the stretched data profile. |
required |
Returns:
| Type | Description |
|---|---|
GenericSequence
|
The stretched data profile (data only) |
DatetimeIndex
|
The stretched time index of the data profile |