Skip to content

Commit f6a6268

Browse files
measrainseykhaeru
authored andcommitted
Fix issue with year_vtg being assigned to year_act; Filter year_act
1 parent a3bffa8 commit f6a6268

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

message_ix_models/tools/costs/projections.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -446,10 +446,11 @@ def create_message_outputs(df_projections: pd.DataFrame, fom_rate: float):
446446
technology=lambda x: x.technology.astype("string"),
447447
unit=lambda x: x.unit.astype("string"),
448448
year_vtg=lambda x: x.year_vtg.astype(int),
449-
year_act=lambda x: x.year_vtg.astype(int),
449+
year_act=lambda x: x.year_act.astype(int),
450450
value=lambda x: x.value.astype(float),
451451
)
452452
.query("year_vtg <= 2060 or year_vtg % 10 == 0")
453+
.query("year_act <= 2060 or year_act % 10 == 0")
453454
.reset_index(drop=True)
454455
)
455456

0 commit comments

Comments
 (0)