diff --git a/xanes_analyzeRun.py b/xanes_analyzeRun.py index d8706d1..6492e99 100644 --- a/xanes_analyzeRun.py +++ b/xanes_analyzeRun.py @@ -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):