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

Better abstract "group" types for Instrument and Union #103

Merged
merged 3 commits into from
Aug 25, 2021

Conversation

tlambert03
Copy link
Owner

This PR makes some changes to the way that Instrument/LightSourceGroup and ROI/Union are parsed.
most importantly, it removes the logic from schema.element_decode that prepares the dict "just right" so that it can be parsed by the pydantic model, and puts that logic in the validator on the respective models themselves...

This is working towards being able to support some additional "xml2dict" methods using things besides xmlschema (for instance, lxml, which is much faster).

@tlambert03 tlambert03 merged commit 3e45883 into master Aug 25, 2021
@tlambert03 tlambert03 deleted the better-unions branch August 25, 2021 11:57
@tlambert03 tlambert03 mentioned this pull request Sep 7, 2021
@tlambert03 tlambert03 added the enhancement New feature or request label Dec 31, 2021
This was referenced Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant