Skip to content

Commit

Permalink
fix config import
Browse files Browse the repository at this point in the history
  • Loading branch information
mjirik committed Apr 7, 2015
1 parent 8a29ce7 commit 1cd2f9b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lisa/lisaWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ def initUI(self):
btn_svhv.clicked.connect(self.btnSaveHepaticVeinsTree)
btn_svhv.setToolTip(
"Save Hepatic Veins 1D model into vessel_tree.yaml")
btn_svhv.setEnabled(False)

btn_lesions = QPushButton("Lesions localization", self)
btn_lesions.clicked.connect(self.btnLesionLocalization)
Expand Down Expand Up @@ -652,9 +653,9 @@ def saveOut(self, event=None, filename=None):
self.statusBar().showMessage('No segmentation data!')

def btnConfig(self, event=None):
import lisa.configEditor as ce
import lisa.config
import lisa.organ_segmentation as los
import configEditor as ce
import config
import organ_segmentation as los
d = los.lisa_config_init()
root = tk.Tk()
conf = ce.apply(root, d, (0, 2, 0, 0), use_list=False)
Expand All @@ -669,9 +670,11 @@ def btnConfig(self, event=None):
pass
newconf[key] = value

lisa.config.save_config(
config.save_config(
newconf,
os.path.join(newconf['output_datapath'], 'organ_segmentation.config')
os.path.join(
newconf['output_datapath'],
'organ_segmentation.config')
)
self.quit(event)
# from PyQt4.QtCore import pyqtRemoveInputHook
Expand Down

0 comments on commit 1cd2f9b

Please sign in to comment.