Skip to content

Commit

Permalink
Added dual calculation to entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
willu47 committed Dec 18, 2024
1 parent 13ffe6c commit f48b4b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/osemosys2iamc/resultify.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,10 @@ def main(config: Dict, inputs_path: str, results_path: str) -> pyam.IamDataFrame
elif "demand" in result.keys():
demands = result["demand"]
data = filter_final_energy(results, demands)
elif "dual_commodity":
fuels = result["dual_commodity"]
yearsplit = read_file(inputs_path, "yearsplit", "iso2_start")
data = calculate_timeslice_dual(results, fuels, yearsplit)
else:
data = extract_results(results, technologies)

Expand Down

0 comments on commit f48b4b8

Please sign in to comment.