【发布时间】:2021-12-30 12:48:44
【问题描述】:
我的同事,在最近更新 Brightway2 后,可以在可用的范围内看到 EF3.0 方法。 我尝试做同样的事情,但它不起作用(我有一些新方法,但没有 EF3.0)。 这就是我所做的:
Conda update conda
Conda update brightway2
在光明大道
import brightway2 as bw
bw.Database('biosphere3').delete()
bw.Database('biosphere3').deregister()
bw.projects
bw.projects.delete_project('Name of my project',delete_dir=True)
bw.projects.report()
bw.databases
bw.databases.clear()
bw.bw2setup() #Import of biosphere3
# Import ecoinvent 3.7
ei37dir ="*my directory*"
if 'ecoinvent 3.7_cutoff' in bw.databases:
print("Database has already been imported")
else:
ei37 = bw.SingleOutputEcospold2Importer(ei37dir, 'ecoinvent 3.7_cutoff')
ei37.apply_strategies()
ei37.statistics()
ei37.drop_unlinked(True)
ei37.write_database()
list(bw.methods)
如何实现 EF3.0? 提前谢谢你
凯文
【问题讨论】:
标签: jupyter-notebook brightway