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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for channel 2 of AdqDigitizer's #605

Merged
merged 2 commits into from
Sep 18, 2023
Merged

Add support for channel 2 of AdqDigitizer's #605

merged 2 commits into from
Sep 18, 2023

Conversation

JamesWrigley
Copy link
Member

I also sneaked in 6d91168 to fix the tests 馃き

- Replace np.warnings with the warnings module
- Replace np.float with float
- Pass enum values instead of the enums themselves to redis functions
- Drop support for saving float arrays PNG images and expecting them to be
  restored with the same values. Seems that Pillow dropped support for it.
@takluyver
Copy link
Member

LGTM, thanks.

I haven't totally understood the hget related changes, but they look safe enough; I presume something changed with a new version of the redis client library.

Copy link

@bermudei bermudei left a comment

Choose a reason for hiding this comment

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

LGTM. The warning changes look also safe enough as thomas mentioned. Thanks James!

extra_foam/pipeline/processors/digitizer.py Show resolved Hide resolved
@JamesWrigley
Copy link
Member Author

I haven't totally understood the hget related changes, but they look safe enough; I presume something changed with a new version of the redis client library.

Yeah, so we're passing enums to the function and those used to be automagically converted to integers, but now it doesn't do that anymore so we have to call .value on the enum directly.

@JamesWrigley JamesWrigley merged commit 68c1e09 into dev Sep 18, 2023
1 check passed
@JamesWrigley JamesWrigley deleted the digitizers branch September 18, 2023 16:14
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.

None yet

3 participants