Closed bnavigator closed 7 months ago
Thanks for opening the issue.
Unfortunately that is expected and unavoidable (without requiring a development version of asdf-astropy which pypi will not accept). A new version of asdf-astropy will soon be released to fix the failing test (which is also seen on main).
In brief, the schemas provided by this package are supported by asdf-astropy. Adding a new schema (like galactocentric-1.1.0) requires informing asdf-astropy of the new schema. However it can't be aware of the schema until this package is released (which is leading to the failure here). This means for some schema changes (like the one here) some tests will fail.
Thanks for the clarification. We have a policy to run unit tests for python packages in openSUSE and of course we test with released versions. I will skip this particular one.
Thanks. We certainly should fix this issue with the tests failing for these schema versions. I'll give it some more thought with an eye towards making it easier for you wonderful packaging folks :)
A new version of asdf-astropy (0.6.0) was released: https://pypi.org/project/asdf-astropy/0.6.0/ that adds support for the examples in the schemas to allow the tests to pass.
I'm going to unpin this issue and leave it open. Let me know if you run into any more issues and if all goes well feel free to close the issue.
All is well
The new release fails with an example test and current release versions of astropy and asdf:
pytest output
```python [ 33s] platform linux -- Python 3.9.18, pytest-7.4.4, pluggy-1.3.0 -- /usr/bin/python3.9 [ 33s] cachedir: .pytest_cache [ 33s] rootdir: /home/abuild/rpmbuild/BUILD/asdf_coordinates_schemas-0.3.0 [ 33s] configfile: pyproject.toml [ 33s] testpaths: tests, resources [ 33s] plugins: asdf-3.1.0 [ 33s] collecting ... collected 124 items ... [ 205s] =================================== FAILURES =================================== [ 205s] _________________________________ test session _________________________________ [ 205s] [ 205s] self = <[AttributeError("'ICRS' object has no attribute '_data'") raised in repr()] ICRS object at 0x7fcaec233e20> [ 205s] args = [], copy = True, kwargs = {} [ 205s] [ 205s] def _infer_data(self, args, copy, kwargs): ... [ 205s] [ 205s] > tree = yamlutil.tagged_tree_to_custom_tree(tree, self, _force_raw_types) [ 205s] [ 205s] /usr/lib/python3.9/site-packages/asdf/_asdf.py:889: [ 205s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 205s] [ 205s] tree = {'example': {'frame_attributes': {'galcen_coord': {'data': {'components': {'lat': {'unit': 'deg', 'value': -28.936175}...5}}, 'type': 'CartesianDifferential'}, 'roll': {'unit': 'deg', 'value': 0.0}, 'z_sun': {'unit': 'pc', 'value': 27.0}}}} [ 205s] ctx =