-
Notifications
You must be signed in to change notification settings - Fork 9
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
Ellipse
s being converted into Point
s?
#116
Comments
OK, when doing the opposite workflow (XML to objects) I have found an extra ROI type weirdness case. Here's a snippet of my XML file:
Then, I ran
Resulting in
As you can see, everything looks right, except for the type - it's giving me a |
thanks @erickmartins! could you perhaps share the xml file? It does look an error, but it would be much easier to fix if I could reproduce it locally with |
Sure thing! Adding it as a txt since github doesn't like XML files. (as a sidenote, a few of the Thanks for looking into it! |
the issue is ultimately about how pydantic (the library underlying the model) deals with Unions
do you mind if I include this xml in our test suite? |
Sure, no problem. Thanks a bunch! |
Fixed in #117 . will push a new release soon. thanks for reporting! |
First of all, I love
ome-types
! I'm trying to generate an XML from an OMERO Project, and everything has been going well so far except for anyEllipse
ROIs. Here's a code snippet:And what that prints:
It seems that
ROI()
is internally converting the ellipse into a single point, and I have no idea why! Am I missing something obvious? Everything else seems to work as intended,The text was updated successfully, but these errors were encountered: