fixed bug when passing dict to AnalyzeRun

This commit is contained in:
Marco Cammarata 2016-11-23 09:35:41 +01:00
parent 9df711a3de
commit 389d8b18a6
1 changed files with 1 additions and 0 deletions

View File

@ -254,6 +254,7 @@ class AnalyzeRun(object):
alignment.saveAlignment(fname,self.initAlign,self.roi1,self.roi2)
def loadTransform(self,fname="auto"):
if isinstance(fname,dict): raise FileNotFoundError
if fname == "auto":
fname = g_folder_init+"/run%04d_transform.npy" % self.run
elif isinstance(fname,int):