Skip to content

Commit

Permalink
PyPSA update
Browse files Browse the repository at this point in the history
  • Loading branch information
awongel committed Aug 22, 2024
1 parent 672cc1d commit 7c39d09
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PyPSA
Submodule PyPSA updated 162 files
3 changes: 3 additions & 0 deletions run_pypsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ def postprocess_results(n, case_dict):
"Operational Expenditure"].sum()) / case_dict["total_hours"]
case_results_df = pd.DataFrame([[n.objective, system_cost]], columns=['objective [{0}]'.format(case_dict["currency"]), 'system cost [{0}/{1}]'.format(case_dict["currency"], case_dict["time_unit"])])

# Include component statistics also if 0 after optimization
n.statistics.set_parameters(drop_zero=False)
# Add units
statistics_df = stats_add_units(n.statistics, case_dict)
# Add column with carrier to statistics_df
statistics_df = add_carrier_info(n, statistics_df)
Expand Down
Binary file modified test/test_prefix_expected.xlsx
Binary file not shown.

0 comments on commit 7c39d09

Please sign in to comment.