我有以下格式的特征因素列表:
[(('biosphere3', key), characterization_factor)]
这是一个快速摘录:
my_cfs = [(('biosphere3', 'e259263c-d1f1-449f-bb9b-73c6d0a32a00'), 1.0),
(('biosphere3', '16eeda8a-1ea2-408e-ab37-2648495058dd'), 1.0),
(('biosphere3', 'aa7cac3a-3625-41d4-bc54-33e2cf11ec46'), 1.0)
]
我该如何保存my_cfs
我的 Brightway 方法?
该过程应该与编写新的过程非常相似Database
,因为他们共享很多代码。
创建并注册一个新的Method
:
my_method = Method(("some", "name"))
my_metadata = {"unit": "some unit", "something else": "goes here"}
my_method.register(**my_metadata)
然后写入数据(CF列表):
my_method.write(my_cfs)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)