-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Xspress3 controller disables deadtime correction during
prepare()
.
- Loading branch information
1 parent
f3842c9
commit e29d1cd
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,19 @@ async def test_descriptor(detector): | |
assert await detector.writer._dataset_describer.np_datatype() == "<f8" | ||
|
||
|
||
async def test_deadtime_correction(detector): | ||
"""Deadtime correction in hardware is not reliable and should be | ||
disabled. | ||
https://github.com/epics-modules/xspress3/issues/57 | ||
""" | ||
set_mock_value(detector.drv.deadtime_correction, True) | ||
trigger_info = TriggerInfo(number_of_triggers=1) | ||
await detector.prepare(trigger_info) | ||
assert not await detector.drv.deadtime_correction.get_value() | ||
|
||
|
||
# ----------------------------------------------------------------------------- | ||
# :author: Mark Wolfman | ||
# :email: [email protected] | ||
|