-
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.
Added a function for generating NDAttributeParam objects for an xspre…
…ss3 detector.
- Loading branch information
1 parent
d4366f5
commit 83a87d5
Showing
3 changed files
with
113 additions
and
1 deletion.
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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
from ophyd_async.core import TriggerInfo | ||
from ophyd_async.testing import get_mock_put, set_mock_value | ||
|
||
from haven.devices.detectors.xspress import Xspress3Detector | ||
from haven.devices.detectors.xspress import Xspress3Detector, ndattribute_params | ||
|
||
this_dir = Path(__file__).parent | ||
|
||
|
@@ -73,6 +73,13 @@ async def test_deadtime_correction(detector): | |
assert not await detector.drv.deadtime_correction.get_value() | ||
|
||
|
||
async def test_ndattribute_params(): | ||
n_elem = 8 | ||
n_params = 9 | ||
params = ndattribute_params(device_name="xsp3", elements=range(n_elem)) | ||
assert len(params) == n_elem * n_params | ||
|
||
|
||
# ----------------------------------------------------------------------------- | ||
# :author: Mark Wolfman | ||
# :email: [email protected] | ||
|