Skip to content

Commit

Permalink
Merge pull request #175 from TAMUparametric/emission
Browse files Browse the repository at this point in the history
revenue dict added
  • Loading branch information
cacodcar committed Sep 14, 2023
2 parents a6db82f + 673aee0 commit cf2d0ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/energiapy/components/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ def __post_init__(self):
for i in self.location_set}
# TODO change to be location wise
self.price_dict = {i.name: i.resource_price for i in self.location_set}
self.revenue = {i.name: i.resource_revenue for i in self.location_set}
self.revenue_dict = {
i.name: i.resource_revenue for i in self.location_set}
self.capex_dict = {i.name: i.capex for i in self.process_set}
self.fopex_dict = {i.name: i.fopex for i in self.process_set}
self.vopex_dict = {i.name: i.vopex for i in self.process_set}
Expand All @@ -208,7 +209,7 @@ def __post_init__(self):
self.credit_dict = {i.name: {j.name: i.credit[j] for j in i.credit.keys(
)} for i in self.location_set if i.credit is not None}
self.emission_dict = {
i.name: {j.name: {l.name: m for l, m in k.items()} for j, k in i.emission_dict.items()} for i in self.location_set}
i.name: {j.name: {l.name: k[l] for l in k.keys()} for j, k in i.emission_dict.items()} for i in self.location_set}
self.process_resource_dict = {
i.name: i.resource_req for i in self.process_set}
# self.process_material_dict = {i.name: {j.name: i.material_cons[j] for j in i.material_cons.keys()} if i.material_cons is not None else None for i in
Expand Down

0 comments on commit cf2d0ec

Please sign in to comment.