-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I24 serial: commissioning fixes #645
Changes from all commits
10a2446
5de636b
799a91c
4d1a474
d10a9a0
43bdae2
d89f3f5
dd4deb8
aa3a06b
863be36
0fad6e4
6b1f770
b5f6124
b35c60b
f1c1073
ee9f9ab
d01f029
cfd0cca
ae8c0aa
95cc815
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,7 +77,7 @@ | |
Returns: | ||
The estimated collection time, in s. | ||
""" | ||
buffer = PMAC_MOVE_TIME * parameters.total_num_images + 2 | ||
buffer = PMAC_MOVE_TIME * parameters.total_num_images + 600 | ||
pump_setting = parameters.pump_repeat | ||
collection_time = parameters.total_num_images * parameters.exposure_time_s | ||
if pump_setting in [ | ||
|
@@ -97,7 +97,7 @@ | |
) | ||
if pump_setting == PumpProbeSetting.Medium1: | ||
# Long delay between pump and probe, with fast shutter opening and closing. | ||
timeout = timeout + SHUTTER_OPEN_TIME | ||
timeout = timeout + SHUTTER_OPEN_TIME * parameters.total_num_images | ||
return timeout | ||
|
||
|
||
|
@@ -426,7 +426,11 @@ | |
) | ||
|
||
SSX_LOGGER.debug("Arm Pilatus. Arm Zebra.") | ||
shutter_time_offset = SHUTTER_OPEN_TIME if PumpProbeSetting.Medium1 else 0.0 | ||
shutter_time_offset = ( | ||
SHUTTER_OPEN_TIME | ||
if parameters.pump_repeat is PumpProbeSetting.Medium1 | ||
else 0.0 | ||
) | ||
yield from setup_zebra_for_fastchip_plan( | ||
zebra, | ||
parameters.detector_name, | ||
|
@@ -449,7 +453,7 @@ | |
SSX_LOGGER.info("Using Eiger detector") | ||
|
||
SSX_LOGGER.debug(f"Creating the directory for the collection in {filepath}.") | ||
Path(filepath).mkdir(parents=True) | ||
Path(filepath).mkdir(parents=True, exist_ok=True) | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do we only create the directory for the eiger and not the pilatus? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because the Pilatus creates its own directories, while the Eiger doesn't, so there's no need to explicitly create it. Until a few weeks ago - when we started running as i24detector on procserv - this one line was actually triggering a one image collection from the Pilatus just to get the directory.... |
||
SSX_LOGGER.info(f"Triggered Eiger setup: filepath {filepath}") | ||
SSX_LOGGER.info(f"Triggered Eiger setup: filename {filename}") | ||
|
@@ -485,7 +489,11 @@ | |
) | ||
|
||
SSX_LOGGER.debug("Arm Zebra.") | ||
shutter_time_offset = SHUTTER_OPEN_TIME if PumpProbeSetting.Medium1 else 0.0 | ||
shutter_time_offset = ( | ||
SHUTTER_OPEN_TIME | ||
if parameters.pump_repeat is PumpProbeSetting.Medium1 | ||
else 0.0 | ||
) | ||
yield from setup_zebra_for_fastchip_plan( | ||
zebra, | ||
parameters.detector_name, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should have some tests for this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding them in #627 , which is actually changing the code in this file so while I may add them here they would go away in a couple of hours?