Skip to content

Commit

Permalink
Added HDF5 and TIFF file writers to camera device.
Browse files Browse the repository at this point in the history
  • Loading branch information
yannachen committed Jul 8, 2024
1 parent 0191956 commit 8b0a1c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/haven/instrument/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
OverlayPlugin_V34,
PvaPlugin_V34,
ROIPlugin_V34,
HDF5Plugin_V34,
TIFFPlugin_V34,
)

from .. import exceptions
Expand Down Expand Up @@ -36,6 +38,7 @@ class AravisDetector(SingleImageModeTrigger, DetectorBase):
"""
A gige-vision camera described by EPICS.
"""
_default_configuration_attrs = ("cam", "hdf", "tiff")

cam = ADCpt(AravisCam, "cam1:")
image = ADCpt(ImagePlugin_V34, "image1:")
Expand All @@ -50,6 +53,8 @@ class AravisDetector(SingleImageModeTrigger, DetectorBase):
stats3 = ADCpt(StatsPlugin_V34, "Stats3:", kind=Kind.normal)
stats4 = ADCpt(StatsPlugin_V34, "Stats4:", kind=Kind.normal)
stats5 = ADCpt(StatsPlugin_V34, "Stats5:", kind=Kind.normal)
hdf = ADCpt(HDF5Plugin_V34, "HDF1:", kind=Kind.normal)
tiff = ADCpt(TIFFPlugin_V34, "TIFF1:", kind=Kind.normal)


def load_cameras(config=None) -> Sequence[DetectorBase]:
Expand Down

0 comments on commit 8b0a1c2

Please sign in to comment.