Skip to content

FIX #1166: JPEG writer test sets 8-bit data type - #1192

Merged
prjemian merged 2 commits into
mainfrom
1166-jpeg-numcaptured
Aug 18, 2026
Merged

prjemian merged 2 commits into
mainfrom
1166-jpeg-numcaptured

Conversation

@prjemian

Copy link
Copy Markdown
Contributor

test_bp_count_custom_name[jpeg1-...] failed with
NumCaptured_RBV == 0 because the JPEG file writer (NDFileJPEG) only
supports 8-bit (UInt8) images, while the ADSIM camera default is Float64.
The JPEG plugin could not encode Float64, so the file open failed and no
frame was captured. HDF5 and TIFF accept Float64, so only JPEG failed.

Parametrize the camera data_type (UInt8 for JPEG, Float64 otherwise)
and a per-writer file extension, and add pytest.param(id=...) labels.
Verified all three plugin cases pass against a live ADSIM IOC (three
consecutive runs; full test file: 37 passed).

Analysis recorded on the issue.

The JPEG file writer (NDFileJPEG) only supports 8-bit (UInt8) images.
The ADSIM camera default is Float64, which the JPEG plugin cannot encode,
so the file open failed and NumCaptured_RBV stayed 0 while the HDF5 and
TIFF cases passed.

Parametrize the camera data_type (UInt8 for JPEG) and a per-writer file
extension for test_bp_count_custom_name, and add pytest.param(id=...)
labels.  Verified all three plugin cases pass against a live ADSIM IOC.

Generated by OpenCode (argo/claudeopus48)
@prjemian prjemian added this to the 1.7.11 milestone Aug 18, 2026
@prjemian prjemian self-assigned this Aug 18, 2026
CI failed for the HDF writer (py3.11, py3.14) with NumCaptured_RBV == 0
because a freshly-created plugin was never primed: the frame flowed
through (array_counter incremented) but the writer did not capture to
file.  Prime the plugin (after setting the camera data type) so it
captures regardless of prior IOC state.

Generated by OpenCode (argo/claudeopus48)
@prjemian
prjemian merged commit e2cfc2e into main Aug 18, 2026
11 checks passed
@prjemian
prjemian deleted the 1166-jpeg-numcaptured branch August 18, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_bp_count_custom_name fails for JPEG plugin: NumCaptured_RBV reads 0

1 participant