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() diff --git a/pyproject.toml b/pyproject.toml index 9923fd99..2ac56593 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.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",