brightway-lca / brightway2-calc

The calculation engine for the Brightway2 life cycle assessment framework.
BSD 3-Clause "New" or "Revised" License
11 stars 14 forks source link

wrap_functional_unit where are you ? #61

Closed tngTUDOR closed 1 year ago

tngTUDOR commented 2 years ago

Current

Traceback (most recent call last):
File "/opt/conda/bin/bw2-browser", line 8, in <module>
sys.exit(main())
File "/opt/conda/lib/python3.10/site-packages/bw2ui/bin/bw2_browser.py", line 1362, in main
activitybrowser.cmdloop()
File "/opt/conda/lib/python3.10/cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
File "/opt/conda/lib/python3.10/cmd.py", line 217, in onecmd
return func(arg)
File "/opt/conda/lib/python3.10/site-packages/bw2ui/bin/bw2_browser.py", line 1116, in do_G
mlca = MultiLCA(str(tmp_cs_id))
File "/opt/conda/lib/python3.10/site-packages/bw2calc/multi_lca.py", line 52, in __init__
"functional units": [wrap_functional_unit(o) for o in self.func_units],
File "/opt/conda/lib/python3.10/site-packages/bw2calc/multi_lca.py", line 52, in <listcomp>
"functional units": [wrap_functional_unit(o) for o in self.func_units],
NameError: name 'wrap_functional_unit' is not defined

Expected

we could log without the wrapping, but if it went away, we can cast a spell and make it come back.