Skip to content

Commit ab9cdaa

Browse files
authored
Merge pull request #1308 from mrvisscher/project-setup-wizard
ecoinvent 3.10 compatibility
2 parents 5c523ee + 2d188d6 commit ab9cdaa

26 files changed

Lines changed: 1127 additions & 179 deletions

.git-blame-ignore-revs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
cc69730afaacb15582efcbdf403353d8ce5454d9
2+
5cde894936aab2611d1f0a5be8ece8d5f3312783

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
fail-fast: false
3535
matrix:
3636
os: [ubuntu-latest, windows-latest, macos-latest]
37-
python-version: ['3.9', '3.10', '3.11']
37+
python-version: ['3.10', '3.11']
3838
defaults:
3939
run:
4040
shell: bash -l {0}

activity_browser/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,4 @@ def run_activity_browser():
3030
load_settings()
3131
application.show()
3232

33-
sys.excepthook = exception_hook
34-
3533
sys.exit(application.exec_())

activity_browser/actions/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def run(*args, **kwargs):
1414

1515
@classmethod
1616
def triggered(cls, *args, **kwargs):
17-
1817
args = [arg if not callable(arg) else arg() for arg in args]
1918
kwargs = {k: v if not callable(v) else v() for k, v in kwargs.items()}
2019

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from activity_browser import application
22
from activity_browser.actions.base import ABAction, exception_dialogs
3+
from activity_browser.ui.wizards import ProjectSetupWizard
34
from activity_browser.ui.icons import qicons
4-
from activity_browser.ui.widgets import (DefaultBiosphereDialog,
5-
EcoinventVersionDialog)
65

76

87
class DefaultInstall(ABAction):
@@ -11,16 +10,9 @@ class DefaultInstall(ABAction):
1110
"""
1211

1312
icon = qicons.import_db
14-
text = "Add default data (biosphere flows and impact categories)"
13+
text = "Set up your project with default data"
1514

1615
@staticmethod
1716
@exception_dialogs
1817
def run():
19-
version_dialog = EcoinventVersionDialog(application.main_window)
20-
if version_dialog.exec_() != EcoinventVersionDialog.Accepted:
21-
return
22-
version = version_dialog.options.currentText()
23-
24-
DefaultBiosphereDialog(
25-
version[:3], application.main_window
26-
).show() # only read Major/Minor part of version
18+
ProjectSetupWizard(application.main_window).show()

activity_browser/bwutils/pedigree.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
smoothly into the related uncertainty distributions.
1414
"""
1515
import math
16+
from pprint import pformat
1617

1718
from bw2data.parameters import ParameterBase
1819
from bw2data.proxies import ExchangeProxyBase

activity_browser/layouts/panels/left.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ class LeftPanel(ABTab):
77
side = "left"
88

99
def __init__(self, *args):
10+
from ..tabs import HistoryTab, MethodsTab, ProjectTab
11+
1012
super(LeftPanel, self).__init__(*args)
1113

1214
self.tabs = {

activity_browser/mod/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import activity_browser.mod.bw2data as bw2data
2+
import activity_browser.mod.bw2io as bw2io
3+
import activity_browser.mod.ecoinvent_interface as ecoinvent_interface
4+
import activity_browser.mod.pyprind as pyprind

activity_browser/mod/bw2data/method.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
@patch_superclass
99
class Method(Method):
10-
1110
@property
1211
def changed(self):
1312
"""

activity_browser/mod/bw2data/project.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
@patch_superclass
1717
class ProjectManager(ProjectManager):
18-
1918
@property
2019
def current_changed(self):
2120
"""

0 commit comments

Comments
 (0)