Skip to content
Snippets Groups Projects
Commit c28e6819 authored by bliss administrator's avatar bliss administrator
Browse files

Compare sample names in lower case

parent 2cac6343
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment