Skip to content

Commit

Permalink
fix ei_name error
Browse files Browse the repository at this point in the history
  • Loading branch information
pjamesjoyce committed Oct 3, 2018
1 parent 39f5650 commit bea215e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lcopt/model.py
Expand Up @@ -214,13 +214,13 @@ def lcopt_setup(self, ei_username, ei_password, write_config, ecoinvent_version,

elif not self.useForwast:

self.base_project_name = DEFAULT_PROJECT_STEM + ei_name
self.base_project_name = DEFAULT_PROJECT_STEM + self.ecoinventName
old_default = DEFAULT_PROJECT_STEM[:-1]
is_default = ecoinvent_version == "3.3" and ecoinvent_system_model == "cutoff"

if bw2_project_exists(self.base_project_name):
# make sure the search index file is there too
write_search_index(self.base_project_name, ei_name)
write_search_index(self.base_project_name, self.ecoinventName)
elif is_default and bw2_project_exists(old_default):
upgrade_old_default()
else:
Expand Down

0 comments on commit bea215e

Please sign in to comment.