Skip to content

Commit 97c65d5

Browse files
Try alternative preprocessor workaround for python3.8
1 parent 7f1fc0a commit 97c65d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/geophires_x/Units.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def get_unit_registry():
1111
if _UREG is None:
1212
_UREG = pint.get_application_registry()
1313
_UREG.load_definitions(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'GEOPHIRES3_newunits.txt'))
14-
_UREG.preprocessors.append(lambda s: s.replace('%', 'percent'))
14+
_UREG.preprocessors.append(lambda s: s.replace('%%', 'percent'))
1515

1616
return _UREG
1717

0 commit comments

Comments
 (0)