Skip to content

Commit

Permalink
Register "message solve options" using iiasa/ixmp#435
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Feb 8, 2022
1 parent b7731e2 commit 8efc378
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions message_ix/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@

# Register configuration keys with ixmp core and set default
config.register("message model dir", Path, Path(__file__).parent / "model")
# FIXME this overwrites a value loaded from the user's config file
# config.register("message solve options", dict, None)
config.register("message solve options", dict)

# Register models with ixmp core
MODELS["MACRO"] = MACRO
Expand Down
4 changes: 0 additions & 4 deletions message_ix/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
"epopt": 1e-6,
}

# Set default value of "message model options" config key.
# NB this should be in message_ix/__init__.py, but see FIXME there
config.values.setdefault("message model options", dict())

# Abbreviations for index sets and index names; the same used in the inline
# documentation of the GAMS code.
_ABBREV = {
Expand Down

0 comments on commit 8efc378

Please sign in to comment.