print globals to quickly test access to all devices, fixed devices built from SmarActRecord, cleaned str of laser object, fixed __str__ cannot return None, fake epics device get method returns number to satisfy some string formatting

This commit is contained in:
2020-02-26 14:53:11 +00:00
parent e40e6fa03a
commit b617bc6caf
2 changed files with 12 additions and 2 deletions

View File

@ -72,4 +72,12 @@ print(shut_und)
print(pbps_und) print(pbps_und)
for k, v in dict(globals()).items():
if k.startswith("__"):
continue
print("-" * 10)
print(k)
print(v)
print(laser)

View File

@ -14,7 +14,7 @@ flexTable = sd.endstations.alvra_flex.table(
) )
prism = sd.general.smaract.SmarActStage( prism = sd.general.smaract.SmarActStage(
dict( dict( #TODO: remove the wrapper dict
gonio="SARES11-CMOV-SMA691110", gonio="SARES11-CMOV-SMA691110",
trans="SARES11-CMOV-SMA691111", trans="SARES11-CMOV-SMA691111",
rotat="SARES11-CMOV-SMA691112" rotat="SARES11-CMOV-SMA691112"
@ -24,7 +24,7 @@ prism = sd.general.smaract.SmarActStage(
) )
xmic = sd.general.smaract.SmarActStage( xmic = sd.general.smaract.SmarActStage(
dict( dict( #TODO: remove the wrapper dict
gonio="SARES11-CMOV-SMA691113", gonio="SARES11-CMOV-SMA691113",
rotat="SARES11-CMOV-SMA691114" rotat="SARES11-CMOV-SMA691114"
), ),
@ -40,6 +40,8 @@ primeSample = sd.endstations.alvra_prime.Huber(
primeMicroscope = sd.endstations.alvra_prime.Microscope( primeMicroscope = sd.endstations.alvra_prime.Microscope(
"SARES11-XMI125", "SARES11-XMI125",
gonio="SARES11-CMOV-SMA691113",
rotat="SARES11-CMOV-SMA691114",
z_undulator=127, z_undulator=127,
description="Microscope focus and zoom" description="Microscope focus and zoom"
) )