mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-05-28 23:50:42 +02:00
fixed formatting
This commit is contained in:
parent
02f950de8d
commit
4ff7c4b8d9
@ -91,27 +91,26 @@ class FlomniSampleStorage(Device):
|
|||||||
t = PrettyTable()
|
t = PrettyTable()
|
||||||
t.title = "flOMNI sample storage"
|
t.title = "flOMNI sample storage"
|
||||||
field_names = [""]
|
field_names = [""]
|
||||||
field_names.extend(str(ax) for ax in range(1,11))
|
field_names.extend(str(ax) for ax in range(1, 11))
|
||||||
for ct in range(0,2):
|
for ct in range(0, 2):
|
||||||
t.field_names = field_names
|
t.field_names = field_names
|
||||||
row = ["Container " + str(ct)]
|
row = ["Container " + str(ct)]
|
||||||
row.extend(
|
row.extend(
|
||||||
"used" if self.is_sample_slot_used(slot_nr) else "free"
|
"used" if self.is_sample_slot_used(slot_nr) else "free"
|
||||||
for slot_nr in range((ct*10)+1,(ct*10)+11)
|
for slot_nr in range((ct * 10) + 1, (ct * 10) + 11)
|
||||||
)
|
)
|
||||||
t.add_row(row)
|
t.add_row(row)
|
||||||
print(t)
|
print(t)
|
||||||
print("\n\nFollowing samples are currently loaded:\n")
|
print("\n\nFollowing samples are currently loaded:\n")
|
||||||
for ct in range(1,21):
|
for ct in range(1, 21):
|
||||||
if self.is_sample_slot_used(ct):
|
if self.is_sample_slot_used(ct):
|
||||||
print(f" Position {ct:2.0f}: {self.get_sample_name(ct)}")
|
print(f" Position {ct:2.0f}: {self.get_sample_name(ct)}")
|
||||||
if self.sample_in_gripper.get():
|
if self.sample_in_gripper.get():
|
||||||
print(f"\nGripper: {self.sample_in_gripper_name.get()}\n")
|
print(f"\n Gripper: {self.sample_in_gripper_name.get()}\n")
|
||||||
else:
|
else:
|
||||||
print(f"\nGripper: no sample\n")
|
print(f"\n Gripper: no sample\n")
|
||||||
|
|
||||||
if self.is_sample_slot_used(0):
|
if self.is_sample_slot_used(0):
|
||||||
print(f"flOMNI stage: {self.get_sample_name(0)}\n")
|
print(f" flOMNI stage: {self.get_sample_name(0)}\n")
|
||||||
else:
|
else:
|
||||||
print(f"flOMNI stage: no sample\n")
|
print(f" flOMNI stage: no sample\n")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user