Skip to content
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

Added an optional frameswritten setter #67

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

evalott100
Copy link
Contributor

Added an optional setter in the HDF5 writer to set a record detailing the number of frames written.

We require merging and release of this PR before the ioc side: PandABlocks/PandABlocks-ioc#83

According to DiamondLightSource/pythonSoftIOC#142, the set of a record should be thread safe, but we should do some testing before we release.

Copy link

codecov bot commented Dec 14, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (3638f0d) 96.35% compared to head (14dcc00) 96.29%.

Files Patch % Lines
src/pandablocks/hdf.py 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #67      +/-   ##
==========================================
- Coverage   96.35%   96.29%   -0.07%     
==========================================
  Files          12       12              
  Lines        1180     1187       +7     
==========================================
+ Hits         1137     1143       +6     
- Misses         43       44       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@coretl coretl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of minor comments, can we write a test that the file number comes out of the end of the pipeline?

src/pandablocks/hdf.py Outdated Show resolved Hide resolved
src/pandablocks/hdf.py Outdated Show resolved Hide resolved
@evalott100 evalott100 force-pushed the add_ringbuffer branch 2 times, most recently from 418ab45 to 70feb3f Compare December 18, 2023 15:46
@evalott100 evalott100 force-pushed the add_ringbuffer branch 3 times, most recently from 1465540 to 8fbe219 Compare January 8, 2024 11:39
@evalott100 evalott100 requested a review from coretl January 24, 2024 11:24
@evalott100
Copy link
Contributor Author

@coretl completely forgot about adding the test till now. dmgav approved the ioc side add_ringbuffer PR so after this is released I'll merge and release that if CI is all good?

Added a new thread that sets the NumCaptured PV
Added a new EndReason
Added a test to verify that
the number of frames written is passed
downstream in the pipeline
@evalott100 evalott100 merged commit 37233d9 into PandABlocks:master Jan 29, 2024
11 of 13 checks passed
@evalott100 evalott100 deleted the add_ringbuffer branch January 29, 2024 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants