Repository navigation
Fix EPICS enum signals support - #347
Conversation
|
Thanks! The change to the schema seems OK, but I have question about pinning down the dependency. From the commit message:
This kind of thing does not generally require any action on our part. Package metadata on each release of |
The issue here is that the schema generator code here in this code base hardcodes the 3.8 version: This in theory means that |
Apologies, when I made this change bluesky was still supporting 3.8, and as such I wanted the generated We've removed 3.8 from supported versions of bluesky so I'm happy for this to be bumped to target_python_version=datamodel_code_generator.PythonVersion.PY_39, |
evvaaaa
left a comment
There was a problem hiding this comment.
Thanks very much!
I think we should just remove target_python_version= as an argument, it'll end up being more trouble than it's worth. For now there is no difference in generated schema.
In EPICS, enum (mbbi / mbbo) values do not possess units, so Ophyd fills their values with None before composing the descriptor document. As such, any such signals would fail validation previously. This reverts a behavior change from PR bluesky#343. Signed-off-by: Sofia Donato Ferreira <[email protected]>
Since version 0.28 of datamodel-code-generator, support for Python 3.8 was removed, so the previous configuration became invalid. Without the argument explicitly specified, the minimum supported version is used, which for now is Python 3.9. Signed-off-by: Sofia Donato Ferreira <[email protected]>
71da362 to
471eb44
Compare
Fix EPICS enum signals support
In EPICS, enum (
mbbi/mbbo) values do not possess units, so Ophyd fills their values withNonebefore composing the descriptor document.As such, any such signals would fail validation prior to this patch.
This reverts a behavior change from PR #343.