diff --git a/invesalius/control.py b/invesalius/control.py index 3493c4e..bf8ad43 100755 --- a/invesalius/control.py +++ b/invesalius/control.py @@ -385,6 +385,7 @@ class Controller(): def CreateAnalyzeProject(self, imagedata): header = imagedata.get_header() proj = prj.Project() + proj.imagedata = None proj.name = _("Untitled") proj.SetAcquisitionModality("MRI") #TODO: Verify if all Analyse are in AXIAL orientation diff --git a/invesalius/reader/analyze_reader.py b/invesalius/reader/analyze_reader.py index d134904..8546df7 100644 --- a/invesalius/reader/analyze_reader.py +++ b/invesalius/reader/analyze_reader.py @@ -29,9 +29,6 @@ def ReadAnalyze(filename): anlz = squeeze_image(AnalyzeImage.from_filename(filename)) return anlz - - return reader.GetOutput() - def ReadDirectory(dir_): """ Looking for analyze files in the given directory -- libgit2 0.21.2