Parcourir la source

minor error in imageBrowser

Andrej Studen il y a 3 semaines
Parent
commit
b7952debe1
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  1. 5 2
      slicerModules/imageBrowser.py

+ 5 - 2
slicerModules/imageBrowser.py

@@ -514,8 +514,6 @@ class imageBrowserLogic(ScriptedLoadableModuleLogic):
       #read the config file and adjust the browser window 
 
 
-        self.parent.ctField.setText(self.isetup.get('ctField','ctResampled'))
-        self.parent.petField.setText(self.isetup.get('petField','petResampled'))
 
         status={}
         fileName=os.path.join(os.path.expanduser('~'),'.labkey',configName)
@@ -526,6 +524,11 @@ class imageBrowserLogic(ScriptedLoadableModuleLogic):
         with open(fileName,'r') as f:
             self.isetup=json.load(f)
 
+        #update ctField and petField in widget
+
+        self.parent.ctField.setText(self.isetup.get('ctField','ctResampled'))
+        self.parent.petField.setText(self.isetup.get('petField','petResampled'))
+
         #include filters...
 
         ds=self.getDataset()