Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cnapy/gui_elements/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down