Skip to content

Commit

Permalink
update path to definitions.txt after units-repo refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuppmann committed Apr 6, 2020
1 parent 3596fce commit 46fcb3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyam/units.py
Expand Up @@ -9,8 +9,8 @@

# get application pint.UnitRegistry and load energy-units
_REGISTRY = pint.get_application_registry()
file = Path(__file__).parents[1] / 'units' / 'definitions.txt'
_REGISTRY.load_definitions(str(file))
path = Path(__file__).parents[1] / 'units' / 'iam_units' / 'data'
_REGISTRY.load_definitions(str(path / 'definitions.txt'))


def convert_unit(df, current, to, factor=None, registry=None, context=None,
Expand Down

0 comments on commit 46fcb3b

Please sign in to comment.