Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/tutorials/run-simulations/simulation_tasking.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ where:

**Additional options**:

- `--dataframe-key {KEY}`: specify which dataframe to download (default: `EnergyAndPeak`). other options may include `HourlyData` if hourly data was configured
- `--dataframe-key {KEY}`: specify which dataframe to download (default: `EnergyAndPeak`). if hourly data was configured, each time series is a separate dataframe (e.g. `HourlyData.Zone_Mean_Air_Temperature`, `HourlyData.Zone_Air_Relative_Humidity`)
- `--include-csv`: include CSV export in addition to parquet (CSV is automatically included for `EnergyAndPeak` dataframe)

**Example with all options**:
Expand Down
5 changes: 4 additions & 1 deletion src/globi/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,10 @@ def post_geometry_callback(idf: IDF) -> IDF:
hourly_df = hourly_df.set_index(old_ix, append=True)

if spec.parent_experiment_spec.hourly_data_config.does_dataframe_output:
dfs["HourlyData"] = hourly_df
for meter_name in hourly_df.columns.get_level_values("Meter").unique():
variable_df = hourly_df.xs(meter_name, level="Meter", axis=1)
dataframe_key = f"HourlyData.{meter_name.replace(' ', '')}"
dfs[dataframe_key] = variable_df
if spec.parent_experiment_spec.hourly_data_config.does_file_output:
hourly_data_outpath = tempdir / "outputs_hourly_data.pq"
hourly_df.to_parquet(hourly_data_outpath)
Expand Down
Loading