fjuniorr / flowmapper

Mappings between elementary flows
MIT License
0 stars 1 forks source link

pint.errors.UndefinedUnitError: 'sm3' is not defined in the unit registry #64

Closed fjuniorr closed 6 months ago

fjuniorr commented 6 months ago

Got this while running a map between agribalyse-3.1.1-biosphere and ecoinvent-3.9-biosphere:

flowmapper map --fields config/simapro-ecoinvent.py \
               --format randonneur --output-dir mappings/snapshot --matched-source --matched-target \
               data/agribalyse-3.1.1-biosphere.json \
               data/ecoinvent-3.9-biosphere.json
5667 source flows...
4718 target flows...
 56%|█████████████████████████████████████████████████                                       | 3159/5667 [01:32<01:13, 34.27it/s]
Traceback (most recent call last):
pint.errors.UndefinedUnitError: 'sm3' is not defined in the unit registry
fjuniorr commented 6 months ago

From ecoinvent:

The update for 3.9 introduces a change to the reference conditions for natural gas products (except natural gas liquids): these products are now measured in standard cubic meters (Sm3), which is defined as the volume the gas takes up at 15°C (288.15°K) and atmospheric pressure (1.013 bar).