Skip to content

Commit

Permalink
Merge pull request #128 from Stew-McD/ecoinvent-version-check
Browse files Browse the repository at this point in the history
bw2-25 version checking (fixed origin branch)
  • Loading branch information
romainsacchi authored Oct 18, 2023
2 parents a22e5eb + 8bcc0e3 commit 43d82bd
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions premise/ecoinvent_modification.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,12 @@

logger = logging.getLogger("module")

try:
import bw_processing

import bw2data
if int(bw2data.__version__[0]) >= 4:
from .brightway25 import write_brightway_database

logger.info("Using Brightway 2.5")

except ImportError:
else:
from .brightway2 import write_brightway_database

logger.info("Using Brightway 2")


Expand Down

0 comments on commit 43d82bd

Please sign in to comment.