我一直在导入一个带有配方的 simaproCSV 数据集
sp = SimaProCSVImporter("recipe.CSV","recipe")
sp.migrate("simapro-ecoinvent-3")
sp.apply_strategies()
和另一个 simaproCSV 数据集,其中包含第一个数据集中某些成分的 4 个特定单元过程。
sp2 = SimaProCSVImporter("ingredients.CSV","ingredients")
sp2.migrate("simapro-ecoinvent-3")
sp2.apply_strategies()
通过将所有成分交换与 ecoinvent 相匹配,我能够进行影响评估。
sp2.match_database("ecoinvent 3.2 cutoff",ignore_categories=True)
db = sp2.write_database()
lca = LCA(
demand={db.random(): 1},
method=('IPCC 2013', 'GWP', '100 years'),
)
lca.lci()
lca.lcia()
lca.score
作为下一步,我首先将配方数据集与 ecoinvent 进行匹配,然后将其与成分数据集进行匹配。
sp.match_database("ecoinvent 3.2 cutoff",ignore_categories=True)
sp.match_database("ingredients",ignore_categories=True)
db2 = sp.write_database()
当我想做 LCA 计算时;
lca = LCA(
demand={db2.random(): 1},
method=('IPCC 2013', 'GWP', '100 years'),
)
lca.lci()
lca.lcia()
lca.score
我收到以下错误:
Technosphere matrix is not square: 12917 rows and 12921 products.
我做错了什么,最佳做法是什么?