Commit 371a7514ed00da1b69ec487cd9cf3c021a66f642

Authored by tfmoraes
1 parent c8a7aced

Opening analyze files again

invesalius/control.py
@@ -385,6 +385,7 @@ class Controller(): @@ -385,6 +385,7 @@ class Controller():
385 def CreateAnalyzeProject(self, imagedata): 385 def CreateAnalyzeProject(self, imagedata):
386 header = imagedata.get_header() 386 header = imagedata.get_header()
387 proj = prj.Project() 387 proj = prj.Project()
  388 + proj.imagedata = None
388 proj.name = _("Untitled") 389 proj.name = _("Untitled")
389 proj.SetAcquisitionModality("MRI") 390 proj.SetAcquisitionModality("MRI")
390 #TODO: Verify if all Analyse are in AXIAL orientation 391 #TODO: Verify if all Analyse are in AXIAL orientation
invesalius/reader/analyze_reader.py
@@ -29,9 +29,6 @@ def ReadAnalyze(filename): @@ -29,9 +29,6 @@ def ReadAnalyze(filename):
29 anlz = squeeze_image(AnalyzeImage.from_filename(filename)) 29 anlz = squeeze_image(AnalyzeImage.from_filename(filename))
30 return anlz 30 return anlz
31 31
32 -  
33 - return reader.GetOutput()  
34 -  
35 def ReadDirectory(dir_): 32 def ReadDirectory(dir_):
36 """ 33 """
37 Looking for analyze files in the given directory 34 Looking for analyze files in the given directory