Skip to content

Commit

Permalink
Meta documentation update: valid args
Browse files Browse the repository at this point in the history
describe valid args of getting/setting/deleting meta indicators
  • Loading branch information
fonfon committed Aug 6, 2020
1 parent 6df062f commit 9ba12e3
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions ixmp/backend/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,13 @@ def get_meta(self, model: str, scenario: str, version: int) -> dict:
-------
dict (str -> any)
Mapping from meta category keys to values.
Raises
------
ValueError
On unsupported model-scenario-version combinations.
Supported combinations are: (model), (scenario), (model, scenario),
(model, scenario, version)
"""

@abstractmethod
Expand All @@ -960,6 +967,13 @@ def set_meta(self, meta: dict, model: str, scenario: str, version: int):
Returns
-------
None
Raises
------
ValueError
On unsupported model-scenario-version combinations.
Supported combinations are: (model), (scenario), (model, scenario),
(model, scenario, version)
"""

@abstractmethod
Expand All @@ -980,6 +994,13 @@ def remove_meta(self, categories: list, model: str, scenario: str,
Returns
-------
None
Raises
------
ValueError
On unsupported model-scenario-version combinations.
Supported combinations are: (model), (scenario), (model, scenario),
(model, scenario, version)
"""

@abstractmethod
Expand All @@ -990,10 +1011,6 @@ def get_scenario_meta(self, s: Scenario):
-------
dict (str -> any)
Mapping from meta keys to values.
See also
--------
s_get_meta
"""

@abstractmethod
Expand Down

0 comments on commit 9ba12e3

Please sign in to comment.