Skip to content

Commit

Permalink
material modes set fix in scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
cacodcar committed Dec 1, 2023
1 parent 824a296 commit 5f0e46c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/energiapy/components/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,13 @@ def __post_init__(self):
process_material_modes = []
for i in self.process_set:
if i.material_cons is not None:

process_material_modes = process_material_modes + [(i.name, j) for j in list(i.material_cons.keys())]

self.process_material_modes = process_material_modes

self.process_material_modes_dict = {i.name: i.material_modes for i in self.process_set}

if i.material_cons != {}:
self.process_material_modes = process_material_modes
self.process_material_modes_dict = {i.name: i.material_modes for i in self.process_set}
set_dict = {
'resources': [i.name for i in self.resource_set],

Expand Down

0 comments on commit 5f0e46c

Please sign in to comment.