def run(self): bw.create_default_biosphere3() if not len(bw.methods): bw.create_default_lcia_methods() if not len(bw.migrations): bw.create_core_migrations() import_signals.biosphere_finished.emit() signals.change_project.emit(bw.projects.current) signals.project_selected.emit()
def run(self): project = "<b>{}</b>".format(bw.projects.current) if "biosphere3" not in bw.databases: self.update.emit(0, "Creating default biosphere for {}".format(project)) bw.create_default_biosphere3() project_settings.add_db("biosphere3") if not len(bw.methods): self.update.emit(1, "Creating default LCIA methods for {}".format(project)) bw.create_default_lcia_methods() if not len(bw.migrations): self.update.emit(2, "Creating core data migrations for {}".format(project)) bw.create_core_migrations()