我正在测试Brightway的wurst库,但是我面临多个函数的关键错误。
例如,如果我运行:
import wurst as w
#act is a random activity from ecoinvent database
w.transformations.geo.copy_to_new_location(act,'CA-QC')我收到一条关键错误信息。KeyError:“交易所”。
对于更简单的函数,比如参考产品,我也得到了同样的错误。查看一下我看到的代码,它称为act,它在我的数据库中没有被定义为键。如果我跑:
act.as_dict().keys()我得到了dict_keys(['comment', 'classifications', 'activity type', 'activity', 'database', 'filename', 'location', 'name', 'parameters', 'authors', 'type', 'reference product', 'flow', 'unit', 'production amount', 'code'])。但不是'exchanges'。
我正在使用Brightway版本2.1.1和wurst 0.1。怎么啦?
https://stackoverflow.com/questions/47775756
复制相似问题