Skip to content

Commit 236cb38

Browse files
committed
raise error in add_year() until fixed
1 parent 2045b07 commit 236cb38

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

message_ix/tools/add_year/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@ def add_year(
135135
point for interpolation (e.g., permitting the extension of a bound to
136136
2025, when there is only one value in 2020).
137137
"""
138+
# TODO: when #578 is solved, remove this
139+
raise NotImplementedError(
140+
'This function is known to not work properly. '
141+
'Please see https://github.com/iiasa/message_ix/issues/578.'
142+
)
143+
138144
# III.A) Adding sets and required modifications
139145
years_new = sorted([x for x in years_new if str(x) not in set(sc_ref.set("year"))])
140146
add_year_set(sc_ref, sc_new, years_new, firstyear_new, lastyear_new, baseyear_macro)

0 commit comments

Comments
 (0)