-
Notifications
You must be signed in to change notification settings - Fork 11
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
Made conversion on enum fields to List[str] optional #58
Made conversion on enum fields to List[str] optional #58
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #58 +/- ##
=======================================
Coverage 96.32% 96.32%
=======================================
Files 12 12
Lines 1170 1170
=======================================
Hits 1127 1127
Misses 43 43
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments are mostly a few questions I'd like answers to before merging this. We also need at least one test where convert_enum_indices
is False
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type hints in tests need updating
167fa62
to
738af76
Compare
738af76
to
6ccaa8f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
By default pandablocks-ioc will refer to enum values by their integer indices, with values being stored in a
numpy.uint8
.Because of this, we make conversion to a
List[str]
of enum values optional in pandablocks client.