Explorar o código

minor error in imageBrowser

Andrej Studen hai 3 semanas
pai
achega
b7952debe1
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  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()