Tabular models fail to serialize to asdf when used with units#8037
Tabular models fail to serialize to asdf when used with units#8037Cadair wants to merge 2 commits into
Conversation
Tabular models with units will not round trip to asdf [ci skip]
|
Hi there @Cadair 👋 - thanks for the pull request! I'm just a friendly 🤖 that checks for issues related to the changelog and making sure that this pull request is milestoned and labeled correctly. This is mainly intended for the maintainers, so if you are not a maintainer you can ignore this, and a maintainer will let you know if any action is required on your part 😃. I see this is a work in progress pull request. I'll report back on the checks once the PR is ready for review. If there are any issues with this message, please report them here. |
|
I ci skipped to save cycles. the error is: |
|
@Cadair , is this release critical? |
yes, also probably a bug in 3.0 as well. |
| bb = [list(item) for item in model.bounding_box] | ||
| node['bounding_box'] = bb | ||
|
|
||
| if 'bounding_box' not in node: |
There was a problem hiding this comment.
I'm not sure why this is needed. When does this evaluate as True?
|
After looking a bit more into this, the problem is that model.bounding_box does not allow serialization if the values are Quantities. I will submit a fix for this today. |
|
Superseded by #8052 |
This is a bug report in the form of a regression test.
It seems that when presented with a Tabular model where points and lookup_table are units the asdf tag fails. I am currently debugging this insanity.