Skip to content

Commit bacc7f8

Browse files
committed
LCIA for older ecoinvent versions not supported
1 parent 560ee74 commit bacc7f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bw2io/ecoinvent.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ def import_ecoinvent_release(
248248
soup.write_database()
249249

250250
if lcia:
251+
subversion = int(version.split(".")[1])
252+
if subversion < 4:
253+
raise ValueError("LCIA import for versions 3.0-3.3 not supported")
254+
251255
if biosphere_name is None:
252256
biosphere_name = bd.config.biosphere
253257
if biosphere_name not in bd.databases or not len(bd.Database(biosphere_name)):

0 commit comments

Comments
 (0)