Skip to content

Commit

Permalink
Include review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 committed May 22, 2024
1 parent 1ba0392 commit 42fb3a3
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions message_ix/tools/add_year/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,16 +430,8 @@ def add_year_par(
)
sc_new.commit("New parameter initiated!")

par_old = (
sc_ref.par(parname, {node_col[0]: reg_list})
if node_col
else sc_ref.par(parname)
)
par_new = (
sc_new.par(parname, {node_col[0]: reg_list})
if node_col
else sc_new.par(parname)
)
par_old = sc_ref.par(parname, filters={node_col[0]: reg_list} if node_col else None)
par_new = sc_new.par(parname, filters={node_col[0]: reg_list} if node_col else None)
sort_order = (
[
node_col[0],
Expand Down

0 comments on commit 42fb3a3

Please sign in to comment.