From 66636b1e63194400db7ae314e7415357e827367d Mon Sep 17 00:00:00 2001 From: axelvonkamp Date: Tue, 21 Oct 2025 13:59:39 +0200 Subject: [PATCH 1/3] explicitly create empty default map when loading SBML file --- cnapy/gui_elements/main_window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cnapy/gui_elements/main_window.py b/cnapy/gui_elements/main_window.py index d7e1e188..5c67d3fd 100644 --- a/cnapy/gui_elements/main_window.py +++ b/cnapy/gui_elements/main_window.py @@ -24,7 +24,7 @@ QMainWindow, QMessageBox, QToolBar, QShortcut, QStatusBar, QLabel) from qtpy.QtWebEngineWidgets import QWebEngineView -from cnapy.appdata import AppData +from cnapy.appdata import AppData, CnaMap from cnapy.gui_elements.about_dialog import AboutDialog from cnapy.gui_elements.central_widget import CentralWidget, ModelTabIndex from cnapy.gui_elements.clipboard_calculator import ClipboardCalculator @@ -1265,6 +1265,8 @@ def new_project_from_sbml(self, filename=''): self.appdata.project.cobra_py_model = cobra_py_model self.set_current_filename(filename) + default_map = CnaMap("Map") + self.appdata.project.maps = {"Map": default_map} self.recreate_maps() self.centralWidget().update(rebuild_all_tabs=True) self.update_scenario_file_name() From 39885d0edcdb0714960a304463e57dcb70785a92 Mon Sep 17 00:00:00 2001 From: Pavlos Stephanos Bekiaris <36934614+Paulocracy@users.noreply.github.com> Date: Tue, 4 Nov 2025 10:13:01 +0100 Subject: [PATCH 2/3] (hopefully) Fix #551 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9923fd99..e1f10859 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,14 +19,14 @@ dependencies = [ "appdirs>=1.4", "matplotlib>=3.6", "requests>=2.28", - "cobra>=0.29", + "cobra>=0.30", "efmtool_link>=0.0.8", "optlang_enumerator>=0.0.12", "straindesign>=1.12", "qtpy>=2.3", "pyqtwebengine>=5.15", "qtconsole==5.4", - "gurobipy==11.*", + "gurobipy>=12.*", "cplex==22.1.2.0", # We use this specific version as it's currently the last one with support for ARM CPUs "numpy==1.23", "scipy==1.12", From 7a7663eec878a89f81277e975a6acf0966b8ca56 Mon Sep 17 00:00:00 2001 From: Pavlos Stephanos Bekiaris <36934614+Paulocracy@users.noreply.github.com> Date: Tue, 4 Nov 2025 10:32:38 +0100 Subject: [PATCH 3/3] Fix the fix ;-) --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e1f10859..2ac56593 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ dependencies = [ "qtpy>=2.3", "pyqtwebengine>=5.15", "qtconsole==5.4", - "gurobipy>=12.*", + "gurobipy>=12.0", "cplex==22.1.2.0", # We use this specific version as it's currently the last one with support for ARM CPUs "numpy==1.23", "scipy==1.12",