diff --git a/SamplesDS/TomoSamples.py b/SamplesDS/TomoSamples.py index b1122884849cb285f68f01b06fab91c883c6491b..7eefb1a40b4fdfafc742cd821ee154df136ec359 100644 --- a/SamplesDS/TomoSamples.py +++ b/SamplesDS/TomoSamples.py @@ -366,7 +366,7 @@ class TomoSamples(Device): position = argin.upper() else: for i in self.tomo_samples.keys(): - if self.tomo_samples[i] == argin: + if self.tomo_samples[i].lower() == argin.lower(): position = i break @@ -396,11 +396,10 @@ class TomoSamples(Device): for i in self.tomo_samples.keys(): # do not reset samples with protected names found = False - for psn in ProtectedSampleNames: - print psn.lower() self.tomo_samples[i].lower() - + for psn in self.ProtectedSampleNames: if psn.lower() == self.tomo_samples[i].lower(): found = True; + break; if found == False: self.sample_devices[i].Reset() @@ -429,7 +428,7 @@ class TomoSamples(Device): position = argin.upper() else: for i in self.tomo_samples.keys(): - if self.tomo_samples[i] == argin: + if self.tomo_samples[i].lower() == argin.lower(): position = i break