Skip to content

Commit

Permalink
storage efficiency must not affect main chain scaling factors
Browse files Browse the repository at this point in the history
  • Loading branch information
markushal committed Sep 16, 2024
1 parent 65ce8ff commit 34e52f2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ptxboa/api_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,13 @@ def calculate(data: CalculateDataType) -> pd.DataFrame:
}
result_process_type = df_processes.at[process_code, "result_process_type"]

main_input_value = main_output_value

eff = step_data["EFF"]
main_output_value = main_input_value * eff

# storage efficiency must not affect main chain scaling factors:
if process_code not in ["EL-STR", "H2-STR"]:
main_input_value = main_output_value
main_output_value = main_input_value * eff

opex_o = step_data["OPEX-O"]

if not is_transport:
Expand Down

0 comments on commit 34e52f2

Please sign in to comment.