Skip to content

Commit

Permalink
Fix issue with args being None in marginal_mixes.py.
Browse files Browse the repository at this point in the history
Version bump.
  • Loading branch information
romainsacchi committed Aug 18, 2023
1 parent 032fa7b commit 02d151f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion premise/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__all__ = ("NewDatabase", "clear_cache", "get_regions_definition")
__version__ = (1, 6, 2)
__version__ = (1, 6, 3)

from pathlib import Path

Expand Down
2 changes: 2 additions & 0 deletions premise/marginal_mixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ def consequential_method(data: xr.DataArray, year: int, args: dict) -> xr.DataAr
:return: marginal market mixes
"""

args = args or {}

range_time: int = args.get("range time", False)
duration: int = args.get("duration", False)
foresight: bool = args.get("foresight", False)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def package_files(directory):

setup(
name="premise",
version="1.6.2",
version="1.6.3",
python_requires=">=3.9,<3.11",
packages=packages,
author="Romain Sacchi <[email protected]>, Alois Dirnaichner <[email protected]>, Chris Mutel "
Expand Down

0 comments on commit 02d151f

Please sign in to comment.