Skip to content

Commit

Permalink
fixed-mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Stew-McD committed Oct 18, 2023
1 parent 17377fb commit 8bcc0e3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions premise/ecoinvent_modification.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,11 @@

logger = logging.getLogger("module")

try:
import bw2data

major_version = int(bw2data.__version__[0])
assert major_version >= 4

import bw2data
if int(bw2data.__version__[0]) >= 4:
from .brightway25 import write_brightway_database
logger.info("Using Brightway 2.5")

except AssertionError:
else:
from .brightway2 import write_brightway_database
logger.info("Using Brightway 2")

Expand Down

0 comments on commit 8bcc0e3

Please sign in to comment.