Skip to content

Commit

Permalink
fixed errors in app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Unichronic committed Jan 6, 2025
1 parent bdfcf65 commit c209bdb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def __init__(self):
# Splash screen image will depend on the current language
lang = LANG
self.locale = wx.Locale(wx.LANGUAGE_ENGLISH)

self.control = None
# Language information is available in session configuration
# file. First we need to check if this file exist, if now, it
# should be created
Expand Down
6 changes: 5 additions & 1 deletion invesalius/gui/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ def __init__(self, parent):
self.number_colors = 4
self.cluster_volume = None

self.conf = dict(self.session.GetConfig("mep_configuration"))
self.conf = self.session.GetConfig("mep_configuration")
if self.conf is None:
self.conf = {}
else:
self.conf = dict(self.conf)
self.conf["mep_colormap"] = self.conf.get("mep_colormap", "Viridis")

bsizer = wx.StaticBoxSizer(wx.VERTICAL, self, _("3D Visualization"))
Expand Down

0 comments on commit c209bdb

Please sign in to comment.