Skip to content

Commit

Permalink
This trivially makes RefData.year_ref() available as m_year_ref in En…
Browse files Browse the repository at this point in the history
…tries. Why? Because otherwise it is not available inside of the calculations (that is so far it was no longer available once make_entries had run).
  • Loading branch information
bgrundmann committed Nov 20, 2023
1 parent a6f44d1 commit dab6598
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/climatevision/generator/entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ class Entries:
m_population_sta: int # population of state in 2018
m_year_target: int
m_year_today: int
m_year_ref: int # reference year for data (i.e RefData.year_ref() )
r_area_m2: float
r_area_m2_1flat: float
r_area_m2_2flat: float
Expand Down
1 change: 1 addition & 0 deletions src/climatevision/generator/makeentries.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ def compute_efactor_from_n2o(
m_population_sta=m_population_sta,
m_year_target=m_year_target,
m_year_today=m_year_today,
m_year_ref=data.year_ref(),
r_area_m2=r_area_m2,
r_area_m2_1flat=r_area_m2_1flat,
r_area_m2_2flat=r_area_m2_2flat,
Expand Down

0 comments on commit dab6598

Please sign in to comment.