fix bug with compound model inverse serialization#9522
Conversation
|
PEP 8: |
|
cc @jdavies-st |
jdavies-st
left a comment
There was a problem hiding this comment.
This looks good.
My only nit is that the test should use the tmpdir fixture so that it doesn't leave around a test file in the cwd:
def test_custom_and_analytical(tmpdir)
...
filename = tmpdir.join('custom_and_analytical_inverse.asdf')
fa.write_to(filename)
f = asdf.open(filename)
...
But I don't think that this is a show-stopper. Getting fixed quickly is higher priority.
|
I am still looking into related issues - should not be merged yet. |
|
This is a high-priority fix that's needed to support JWST DMS B7.4. Currently there are some WCS objects that contain compound models that are not serializing properly, with inverse transforms being absent in the serialized file. This obviously causes problems downstream when those corrupt data files are used as input to routines that need all the WCS transforms. |
|
I did some further testing of the |
pllim
left a comment
There was a problem hiding this comment.
Can you please squash the commits? Thanks!
3d18bde to
2502f25
Compare
|
Squashed commits and cancelled the jobs I can cancel. Merging. Thanks all! |
Description
This pull request is to address a problem with serialization of compound models when only one of them has a custom inverse. In this case the inverse was not written to file.