From 389d8b18a613183869075469b59ee22c107fab31 Mon Sep 17 00:00:00 2001 From: Marco Cammarata Date: Wed, 23 Nov 2016 09:35:41 +0100 Subject: [PATCH] fixed bug when passing dict to AnalyzeRun --- xanes_analyzeRun.py | 1 + 1 file changed, 1 insertion(+) 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):