dkist 1.5.0__tar.gz → 1.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dkist-1.5.0 → dkist-1.6.0}/.cruft.json +1 -1
- dkist-1.6.0/.github/dependabot.yml +6 -0
- dkist-1.6.0/.github/workflows/codspeed.yml +23 -0
- {dkist-1.5.0 → dkist-1.6.0}/.pre-commit-config.yaml +1 -1
- {dkist-1.5.0 → dkist-1.6.0}/CHANGELOG.rst +17 -0
- {dkist-1.5.0/dkist.egg-info → dkist-1.6.0}/PKG-INFO +3 -2
- {dkist-1.5.0 → dkist-1.6.0}/dkist/_version.py +2 -2
- {dkist-1.5.0 → dkist-1.6.0}/dkist/conftest.py +18 -4
- dkist-1.6.0/dkist/data/api_search_values.json +1 -0
- dkist-1.6.0/dkist/data/test/visp_no_headers.asdf.gz +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/converters/models.py +10 -9
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/entry_points.py +2 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/manifests/dkist-0.9.0.yaml +1 -1
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/manifests/dkist-1.0.0.yaml +1 -1
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/manifests/dkist-1.1.0.yaml +2 -2
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/manifests/dkist-1.2.0.yaml +2 -2
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/manifests/dkist-wcs-1.0.0.yaml +1 -1
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/manifests/dkist-wcs-1.1.0.yaml +1 -1
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/manifests/dkist-wcs-1.2.0.yaml +1 -1
- dkist-1.6.0/dkist/io/asdf/resources/manifests/dkist-wcs-1.3.0.yaml +27 -0
- dkist-1.6.0/dkist/io/asdf/resources/schemas/asymmetric_mapping_model-1.1.0.yaml +30 -0
- dkist-1.6.0/dkist/io/asdf/resources/schemas/coupled_compound_model-1.1.0.yaml +85 -0
- dkist-1.6.0/dkist/io/asdf/resources/schemas/ravel_model-1.1.0.yaml +17 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/schemas/varying_celestial_transform-1.0.0.yaml +4 -4
- dkist-1.6.0/dkist/io/asdf/resources/schemas/varying_celestial_transform-1.1.0.yaml +38 -0
- dkist-1.6.0/dkist/tests/test_benchmarks.py +37 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/wcs/models.py +122 -31
- {dkist-1.5.0 → dkist-1.6.0}/dkist/wcs/tests/test_models.py +5 -5
- {dkist-1.5.0 → dkist-1.6.0/dkist.egg-info}/PKG-INFO +3 -2
- {dkist-1.5.0 → dkist-1.6.0}/dkist.egg-info/SOURCES.txt +9 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist.egg-info/requires.txt +2 -1
- {dkist-1.5.0 → dkist-1.6.0}/pyproject.toml +3 -2
- {dkist-1.5.0 → dkist-1.6.0}/pytest.ini +1 -0
- {dkist-1.5.0 → dkist-1.6.0}/tox.ini +13 -3
- dkist-1.5.0/dkist/data/api_search_values.json +0 -1
- {dkist-1.5.0 → dkist-1.6.0}/.codecov.yaml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/.codespell-dict.txt +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/.codespellrc +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/.coveragerc +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/.flake8 +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/.github/ISSUE_TEMPLATE/BUG_REPORT.md +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/.github/workflows/main.yml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/.github/workflows/prepare-release.yml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/.github/workflows/sub_package_update.yml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/.gitignore +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/.gitmodules +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/.isort.cfg +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/.readthedocs.yaml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/.rtd-environment.yml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/.ruff.toml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/CODE_OF_CONDUCT.md +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/CONTRIBUTING.md +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/LICENSE.rst +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/MANIFEST.in +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/README.rst +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/changelog/README.rst +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/conftest.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/config/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/README.rst +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/VISP_HEADER.hdr +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/sample.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/5d_gwcs.asdf +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/AGLKO-inv.ecsv +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/EIT/efz20040301.000010_s.fits +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/EIT/efz20040301.020010_s.fits +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/EIT/efz20040301.030011_s.fits +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/EIT/efz20040301.040010_s.fits +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/EIT/efz20040301.050010_s.fits +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/EIT/efz20040301.060010_s.fits +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/EIT/efz20040301.080010_s.fits +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/EIT/efz20040301.090010_s.fits +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/EIT/efz20040301.100010_s.fits +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/EIT/efz20040301.110010_s.fits +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/EIT/efz20040301.120010_s.fits +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/EIT/eit_test_dataset.asdf +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/eit_dataset-0.1.0.asdf +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/eit_dataset-0.2.0.asdf +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/eit_dataset-0.3.0.asdf +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/eit_dataset-1.0.0.asdf +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/eit_dataset-1.1.0.asdf +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/eit_dataset-1.2.0.asdf +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/globus_operation_ls_response.json +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/globus_search_response.json +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/large_visp.asdf.gz +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/small_visp/0.fits +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/small_visp/1.fits +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/small_visp/2.fits +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/small_visp/test_visp.asdf +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/test_old_wcs_BRMQY.asdf +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/test_tiled_dataset-1.0.0_dataset-1.0.0.asdf +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/test_tiled_dataset-1.0.0_dataset-1.1.0.asdf +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/data/test/test_tiled_dataset-1.0.0_dataset-1.2.0.asdf +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/dataset/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/dataset/dataset.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/dataset/loader.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/dataset/tests/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/dataset/tests/test_dataset.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/dataset/tests/test_load_dataset.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/dataset/tests/test_plotting.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/dataset/tests/test_tiled_dataset.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/dataset/tiled_dataset.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/dataset/utils.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/dkist.cfg +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/extern/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/converters/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/converters/dataset.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/converters/file_manager.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/converters/tiled_dataset.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/schemas/asymmetric_mapping_model-1.0.0.yaml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/schemas/coupled_compound_model-1.0.0.yaml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/schemas/dataset-0.1.0.yaml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/schemas/dataset-0.2.0.yaml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/schemas/dataset-0.3.0.yaml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/schemas/dataset-1.0.0.yaml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/schemas/dataset-1.1.0.yaml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/schemas/file_manager-1.0.0.yaml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/schemas/ravel_model-1.0.0.yaml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/schemas/tiled_dataset-0.1.0.yaml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/schemas/tiled_dataset-1.0.0.yaml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/tests/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/tests/conftest.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/tests/test_dataset.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/tests/test_models.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/tests/test_tiled_dataset.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/dask_utils.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/file_manager.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/level_1_dataset_schema.yaml +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/loaders.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/tests/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/tests/test_file_manager.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/io/tests/test_fits.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/logger.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/attr_walker.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/attrs.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/attrs_values.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/client.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/globus/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/globus/auth.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/globus/endpoints.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/globus/tests/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/globus/tests/conftest.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/globus/tests/test_auth.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/globus/tests/test_endpoints.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/globus/tests/test_transfer.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/globus/transfer.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/helpers.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/tests/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/tests/conftest.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/tests/strategies.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/tests/test_attr_walker.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/tests/test_attrs.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/tests/test_attrs_values.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/tests/test_client.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/net/tests/test_helpers.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/tests/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/tests/generate_aia_dataset.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/tests/generate_eit_test_dataset.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/tests/generate_eit_tiled_dataset.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/tests/test_logger.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/utils/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/utils/_model_to_graphviz.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/utils/decorators.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/utils/exceptions.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/utils/inventory.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/utils/sysinfo.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/utils/tests/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/utils/tests/test_inventory.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/utils/tests/test_sysinfo.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/version.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/wcs/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/wcs/tests/__init__.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist/wcs/tests/test_coupled_compound_model.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist.egg-info/dependency_links.txt +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist.egg-info/entry_points.txt +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist.egg-info/not-zip-safe +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/dkist.egg-info/top_level.txt +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/Makefile +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/conf.py +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/developer.rst +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/howto_guides/index.rst +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/howto_guides/reproject_vbi_mosaic.md +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/index.rst +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/installation.rst +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/logo/icon_square.jpg +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/make.bat +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/reference.rst +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/topic_guides/index.rst +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/topic_guides/level1data.rst +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/topic_guides/loading.rst +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/topic_guides/net.rst +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/topic_guides/usertools.rst +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/tutorial/1_astropy_and_sunpy.md +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/tutorial/1_astropy_and_sunpy_NOTES.md +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/tutorial/2_search_and_asdf_download.md +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/tutorial/2_search_and_asdf_download_NOTES.md +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/tutorial/3_the_dataset.md +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/tutorial/3_the_dataset_NOTES.md +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/tutorial/4_more_dataset.md +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/tutorial/5_downloading_data.md +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/tutorial/6_visualization.md +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/tutorial/index.md +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/whatsnew/1.0.rst +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/whatsnew/1.1.rst +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/whatsnew/changelog.rst +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/docs/whatsnew/index.rst +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/setup.cfg +0 -0
- {dkist-1.5.0 → dkist-1.6.0}/setup.py +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: codspeed-benchmarks
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- "main"
|
|
7
|
+
pull_request:
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
benchmarks:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- uses: actions/setup-python@v5
|
|
16
|
+
with:
|
|
17
|
+
python-version: '3.12'
|
|
18
|
+
- run: python -m pip install .[tests] pytest-codspeed
|
|
19
|
+
- name: Run benchmarks
|
|
20
|
+
uses: CodspeedHQ/action@v2
|
|
21
|
+
with:
|
|
22
|
+
token: ${{ secrets.CODSPEED_TOKEN }}
|
|
23
|
+
run: "pytest -vvv -r fEs --pyargs dkist --codspeed"
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
1.6.0 (2024-05-20)
|
|
2
|
+
==================
|
|
3
|
+
|
|
4
|
+
Features
|
|
5
|
+
--------
|
|
6
|
+
|
|
7
|
+
- Update ASDF schemas for upcoming ASDF standard 1.6.0. (`#324 <https://github.com/DKISTDC/dkist/pull/324>`_)
|
|
8
|
+
- Improve performance of ``VaryingCelestialTransform`` classes by not creating a new transform for every set of parameters but instead update the parameters on a single model. (`#370 <https://github.com/DKISTDC/dkist/pull/370>`_)
|
|
9
|
+
- Add GitHub workflow and dependencies for Codspeed, to benchmark PRs against main. (`#382 <https://github.com/DKISTDC/dkist/pull/382>`_)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
Trivial/Internal Changes
|
|
13
|
+
------------------------
|
|
14
|
+
|
|
15
|
+
- Run plotting benchmarks fewer times for more manageable CI, and add a benchmark for generate_celestial_transform. (`#383 <https://github.com/DKISTDC/dkist/pull/383>`_)
|
|
16
|
+
|
|
17
|
+
|
|
1
18
|
1.5.0 (2024-04-03)
|
|
2
19
|
==================
|
|
3
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dkist
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.6.0
|
|
4
4
|
Summary: DKIST User Tools
|
|
5
5
|
Author-email: NSO / AURA <stuart@cadair.com>
|
|
6
6
|
Project-URL: repository, https://github.com/DKISTDC/dkist
|
|
@@ -13,7 +13,6 @@ Requires-Dist: asdf-astropy>=0.2.0
|
|
|
13
13
|
Requires-Dist: asdf-coordinates-schemas>=0.1.0
|
|
14
14
|
Requires-Dist: asdf-standard>=1.0.3
|
|
15
15
|
Requires-Dist: asdf-transform-schemas>=0.3.0
|
|
16
|
-
Requires-Dist: asdf-unit-schemas>=0.1.0
|
|
17
16
|
Requires-Dist: asdf-wcs-schemas>=0.3.0
|
|
18
17
|
Requires-Dist: astropy>=5.3
|
|
19
18
|
Requires-Dist: dask[array]>=2021.8.0
|
|
@@ -35,6 +34,8 @@ Requires-Dist: pytest-cov; extra == "tests"
|
|
|
35
34
|
Requires-Dist: pytest-mock; extra == "tests"
|
|
36
35
|
Requires-Dist: pytest-mpl; extra == "tests"
|
|
37
36
|
Requires-Dist: pytest-httpserver; extra == "tests"
|
|
37
|
+
Requires-Dist: pytest-filter-subpackage; extra == "tests"
|
|
38
|
+
Requires-Dist: pytest-benchmark; extra == "tests"
|
|
38
39
|
Requires-Dist: hypothesis; extra == "tests"
|
|
39
40
|
Requires-Dist: tox; extra == "tests"
|
|
40
41
|
Requires-Dist: pydot; extra == "tests"
|
|
@@ -307,7 +307,16 @@ def small_visp_dataset():
|
|
|
307
307
|
|
|
308
308
|
|
|
309
309
|
@pytest.fixture(scope="session")
|
|
310
|
-
def
|
|
310
|
+
def large_visp_dataset_file(tmp_path_factory):
|
|
311
|
+
vispdir = tmp_path_factory.mktemp("data")
|
|
312
|
+
with gzip.open(Path(rootdir) / "large_visp.asdf.gz", mode="rb") as gfo:
|
|
313
|
+
with open(vispdir / "test_visp.asdf", mode="wb") as afo:
|
|
314
|
+
afo.write(gfo.read())
|
|
315
|
+
return vispdir / "test_visp.asdf"
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
@pytest.fixture(scope="session")
|
|
319
|
+
def large_visp_dataset(large_visp_dataset_file):
|
|
311
320
|
# This dataset was generated by the following code:
|
|
312
321
|
# from dkist_data_simulator.spec214.visp import SimpleVISPDataset
|
|
313
322
|
# from dkist_inventory.asdf_generator import dataset_from_fits
|
|
@@ -319,8 +328,13 @@ def large_visp_dataset(tmp_path_factory):
|
|
|
319
328
|
# ds.generate_files(vispdir)
|
|
320
329
|
# dataset_from_fits(vispdir, "test_visp.asdf")
|
|
321
330
|
|
|
331
|
+
return load_dataset(large_visp_dataset_file)
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
@pytest.fixture(scope="session")
|
|
335
|
+
def visp_dataset_no_headers(tmp_path_factory):
|
|
322
336
|
vispdir = tmp_path_factory.mktemp("data")
|
|
323
|
-
with gzip.open(Path(rootdir) / "
|
|
324
|
-
with open(vispdir / "
|
|
337
|
+
with gzip.open(Path(rootdir) / "visp_no_headers.asdf.gz", mode="rb") as gfo:
|
|
338
|
+
with open(vispdir / "test_visp_no_headers.asdf", mode="wb") as afo:
|
|
325
339
|
afo.write(gfo.read())
|
|
326
|
-
return load_dataset(vispdir / "
|
|
340
|
+
return load_dataset(vispdir / "test_visp_no_headers.asdf")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"parameterValues":[{"parameterName":"createDateMin","values":{"minValue":"2022-12-08T19:07:55.038280","maxValue":"2024-05-02T18:36:22.864980"}},{"parameterName":"createDateMax","values":{"minValue":"2022-12-08T19:07:55.038280","maxValue":"2024-05-02T18:36:22.864980"}},{"parameterName":"endTimeMin","values":{"minValue":"2022-02-23T20:48:55.393500","maxValue":"2024-04-24T21:02:32.111500"}},{"parameterName":"endTimeMax","values":{"minValue":"2022-02-23T20:48:55.393500","maxValue":"2024-04-24T21:02:32.111500"}},{"parameterName":"exposureTimeMin","values":{"minValue":0.037,"maxValue":1380.2332394366197}},{"parameterName":"exposureTimeMax","values":{"minValue":0.037,"maxValue":1380.2332394366197}},{"parameterName":"instrumentNames","values":{"categoricalValues":["VBI","VISP"]}},{"parameterName":"qualityAverageFriedParameterMin","values":{"minValue":0.01695005847191685,"maxValue":2.6520787500175156e+30}},{"parameterName":"qualityAverageFriedParameterMax","values":{"minValue":0.01695005847191685,"maxValue":2.6520787500175156e+30}},{"parameterName":"qualityAveragePolarimetricAccuracyMin","values":{"minValue":0.7510039715379637,"maxValue":1.3227079486518465}},{"parameterName":"qualityAveragePolarimetricAccuracyMax","values":{"minValue":0.7510039715379637,"maxValue":1.3227079486518465}},{"parameterName":"startTimeMin","values":{"minValue":"2022-02-23T19:05:32.338002","maxValue":"2024-04-24T20:38:33.709500"}},{"parameterName":"startTimeMax","values":{"minValue":"2022-02-23T19:05:32.338002","maxValue":"2024-04-24T20:38:33.709500"}},{"parameterName":"targetTypes","values":{"categoricalValues":["coronalhole","sunspot","spicules","quietsun","plages","unknown"]}},{"parameterName":"averageDatasetSpectralSamplingMin","values":{"minValue":0.000540156130946172,"maxValue":0.002011144047143148}},{"parameterName":"averageDatasetSpectralSamplingMax","values":{"minValue":0.000540156130946172,"maxValue":0.002011144047143148}},{"parameterName":"averageDatasetSpatialSamplingMin","values":{"minValue":0.0,"maxValue":12388.04306084}},{"parameterName":"averageDatasetSpatialSamplingMax","values":{"minValue":0.0,"maxValue":12388.04306084}},{"parameterName":"averageDatasetTemporalSamplingMin","values":{"minValue":9.139999999997528,"maxValue":5263.145059399399}},{"parameterName":"averageDatasetTemporalSamplingMax","values":{"minValue":9.139999999997528,"maxValue":5263.145059399399}},{"parameterName":"highLevelSoftwareVersion","values":{"categoricalValues":["Alakai_11.1.0","Alakai_6-0","Alakai_8-0","Alakai_10-0","Alakai_7-0","Pono_6.1.5","Pono_2.1.0","Pono_1.0.0","Alakai_5-1","Pono_3.1.0","Alakai_3-0","Alakai_4-0"]}},{"parameterName":"workflowName","values":{"categoricalValues":["l0_to_l1_vbi_summit-calibrated","l0_to_l1_visp"]}},{"parameterName":"workflowVersion","values":{"categoricalValues":["2.7.4","2.10.3","1.1.7","0.16.0","1.1.10","2.7.2","2.10.15","2.7.0","2.10.1","2.0.2","2.10.12","2.7.3","1.1.5","2.6.1","1.2.1","2.10.13","2.7.5","2.0.1","1.4.8","1.8.2","2.9.0","2.10.7","2.3.1","2.3.0","2.10.0","1.0.0","1.4.11","1.4.1","1.2.0","2.10.2"]}},{"parameterName":"headerDataUnitCreationDateMin","values":{"minValue":"2022-12-08T17:25:51.965000","maxValue":"2024-05-02T16:56:14.521000"}},{"parameterName":"headerDataUnitCreationDateMax","values":{"minValue":"2022-12-08T17:25:51.965000","maxValue":"2024-05-02T16:56:14.521000"}},{"parameterName":"headerVersion","values":{"categoricalValues":["3.6.0","4.0.0","4.1.1","3.3.0","3.0.0","3.4.0","3.9.0","3.5.0","3.7.1","3.8.1"]}}]}
|
|
Binary file
|
|
@@ -4,10 +4,8 @@ from asdf_astropy.converters.transform.core import TransformConverterBase, param
|
|
|
4
4
|
|
|
5
5
|
class VaryingCelestialConverter(TransformConverterBase):
|
|
6
6
|
tags = [
|
|
7
|
-
"asdf://dkist.nso.edu/tags/varying_celestial_transform
|
|
8
|
-
"asdf://dkist.nso.edu/tags/
|
|
9
|
-
"asdf://dkist.nso.edu/tags/inverse_varying_celestial_transform-1.1.0",
|
|
10
|
-
"asdf://dkist.nso.edu/tags/inverse_varying_celestial_transform-1.0.0",
|
|
7
|
+
"asdf://dkist.nso.edu/tags/varying_celestial_transform-*",
|
|
8
|
+
"asdf://dkist.nso.edu/tags/inverse_varying_celestial_transform-*",
|
|
11
9
|
# Old slit tags must be kept so we can read old files, but not types as
|
|
12
10
|
# we will not save slit classes any more
|
|
13
11
|
"asdf://dkist.nso.edu/tags/varying_celestial_transform_slit-1.0.0",
|
|
@@ -23,10 +21,13 @@ class VaryingCelestialConverter(TransformConverterBase):
|
|
|
23
21
|
]
|
|
24
22
|
|
|
25
23
|
def select_tag(self, obj, tags, ctx):
|
|
24
|
+
tag_pattern = "asdf://dkist.nso.edu/tags/varying_celestial_transform"
|
|
26
25
|
if obj._is_inverse:
|
|
27
|
-
|
|
26
|
+
tag_pattern = "asdf://dkist.nso.edu/tags/inverse_varying_celestial_transform"
|
|
28
27
|
|
|
29
|
-
|
|
28
|
+
for tag in tags:
|
|
29
|
+
if tag.startswith(tag_pattern):
|
|
30
|
+
return tag
|
|
30
31
|
|
|
31
32
|
def from_yaml_tree_transform(self, node, tag, ctx):
|
|
32
33
|
from dkist.wcs.models import varying_celestial_transform_from_tables
|
|
@@ -74,7 +75,7 @@ class CoupledCompoundConverter(TransformConverterBase):
|
|
|
74
75
|
ASDF serialization support for CompoundModel.
|
|
75
76
|
"""
|
|
76
77
|
tags = [
|
|
77
|
-
"asdf://dkist.nso.edu/tags/coupled_compound_model
|
|
78
|
+
"asdf://dkist.nso.edu/tags/coupled_compound_model-*",
|
|
78
79
|
]
|
|
79
80
|
|
|
80
81
|
types = ["dkist.wcs.models.CoupledCompoundModel"]
|
|
@@ -122,7 +123,7 @@ class RavelConverter(TransformConverterBase):
|
|
|
122
123
|
"""
|
|
123
124
|
|
|
124
125
|
tags = [
|
|
125
|
-
"asdf://dkist.nso.edu/tags/ravel_model
|
|
126
|
+
"asdf://dkist.nso.edu/tags/ravel_model-*"
|
|
126
127
|
]
|
|
127
128
|
|
|
128
129
|
types = ["dkist.wcs.models.Ravel"]
|
|
@@ -142,7 +143,7 @@ class AsymmetricMappingConverter(TransformConverterBase):
|
|
|
142
143
|
"""
|
|
143
144
|
|
|
144
145
|
tags = [
|
|
145
|
-
"asdf://dkist.nso.edu/tags/asymmetric_mapping_model
|
|
146
|
+
"asdf://dkist.nso.edu/tags/asymmetric_mapping_model-*"
|
|
146
147
|
]
|
|
147
148
|
|
|
148
149
|
types = ["dkist.wcs.models.AsymmetricMapping"]
|
|
@@ -45,6 +45,8 @@ def get_extensions():
|
|
|
45
45
|
converters=dkist_converters),
|
|
46
46
|
ManifestExtension.from_uri("asdf://dkist.nso.edu/manifests/dkist-1.0.0",
|
|
47
47
|
converters=dkist_converters),
|
|
48
|
+
ManifestExtension.from_uri("asdf://dkist.nso.edu/manifests/dkist-wcs-1.3.0",
|
|
49
|
+
converters=wcs_converters),
|
|
48
50
|
ManifestExtension.from_uri("asdf://dkist.nso.edu/manifests/dkist-wcs-1.2.0",
|
|
49
51
|
converters=wcs_converters),
|
|
50
52
|
ManifestExtension.from_uri("asdf://dkist.nso.edu/manifests/dkist-wcs-1.1.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
%YAML 1.1
|
|
2
2
|
---
|
|
3
|
-
id: asdf://dkist.nso.edu/
|
|
3
|
+
id: asdf://dkist.nso.edu/manifests/dkist-0.9.0
|
|
4
4
|
extension_uri: asdf://dkist.nso.edu/dkist/extensions/dkist-0.9.0
|
|
5
5
|
title: DKIST extension
|
|
6
6
|
description: ASDF schemas and tags for pre-1.0 DKIST tags.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
%YAML 1.1
|
|
2
2
|
---
|
|
3
|
-
id: asdf://dkist.nso.edu/
|
|
4
|
-
extension_uri: asdf://dkist.nso.edu/dkist/extensions/dkist-1.
|
|
3
|
+
id: asdf://dkist.nso.edu/manifests/dkist-1.1.0
|
|
4
|
+
extension_uri: asdf://dkist.nso.edu/dkist/extensions/dkist-1.1.0
|
|
5
5
|
title: DKIST extension
|
|
6
6
|
description: ASDF schemas and tags for DKIST classes.
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
%YAML 1.1
|
|
2
2
|
---
|
|
3
|
-
id: asdf://dkist.nso.edu/
|
|
4
|
-
extension_uri: asdf://dkist.nso.edu/dkist/extensions/dkist-1.
|
|
3
|
+
id: asdf://dkist.nso.edu/manifests/dkist-1.2.0
|
|
4
|
+
extension_uri: asdf://dkist.nso.edu/dkist/extensions/dkist-1.2.0
|
|
5
5
|
title: DKIST extension
|
|
6
6
|
description: ASDF schemas and tags for DKIST classes.
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
%YAML 1.1
|
|
2
2
|
---
|
|
3
|
-
id: asdf://dkist.nso.edu/
|
|
3
|
+
id: asdf://dkist.nso.edu/manifests/dkist-wcs-1.0.0
|
|
4
4
|
extension_uri: asdf://dkist.nso.edu/dkist/extensions/dkist-wcs-1.0.0
|
|
5
5
|
title: DKIST WCS extension
|
|
6
6
|
description: ASDF schemas and tags for models and WCS related classes.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
%YAML 1.1
|
|
2
2
|
---
|
|
3
|
-
id: asdf://dkist.nso.edu/
|
|
3
|
+
id: asdf://dkist.nso.edu/manifests/dkist-wcs-1.1.0
|
|
4
4
|
extension_uri: asdf://dkist.nso.edu/dkist/extensions/dkist-wcs-1.1.0
|
|
5
5
|
title: DKIST WCS extension
|
|
6
6
|
description: ASDF schemas and tags for models and WCS related classes.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
%YAML 1.1
|
|
2
2
|
---
|
|
3
|
-
id: asdf://dkist.nso.edu/
|
|
3
|
+
id: asdf://dkist.nso.edu/manifests/dkist-wcs-1.2.0
|
|
4
4
|
extension_uri: asdf://dkist.nso.edu/dkist/extensions/dkist-wcs-1.2.0
|
|
5
5
|
title: DKIST WCS extension
|
|
6
6
|
description: ASDF schemas and tags for models and WCS related classes.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
%YAML 1.1
|
|
2
|
+
---
|
|
3
|
+
id: asdf://dkist.nso.edu/manifests/dkist-wcs-1.3.0
|
|
4
|
+
extension_uri: asdf://dkist.nso.edu/dkist/extensions/dkist-wcs-1.3.0
|
|
5
|
+
asdf_standard_requirement:
|
|
6
|
+
gte: 1.6.0
|
|
7
|
+
|
|
8
|
+
title: DKIST WCS extension
|
|
9
|
+
description: ASDF schemas and tags for models and WCS related classes.
|
|
10
|
+
|
|
11
|
+
tags:
|
|
12
|
+
# the tag version does not match the schema version
|
|
13
|
+
- schema_uri: "asdf://dkist.nso.edu/schemas/varying_celestial_transform-1.1.0"
|
|
14
|
+
tag_uri: "asdf://dkist.nso.edu/tags/varying_celestial_transform-1.2.0"
|
|
15
|
+
|
|
16
|
+
# the varying_celestial_transform schema is reused here
|
|
17
|
+
- schema_uri: "asdf://dkist.nso.edu/schemas/varying_celestial_transform-1.1.0"
|
|
18
|
+
tag_uri: "asdf://dkist.nso.edu/tags/inverse_varying_celestial_transform-1.2.0"
|
|
19
|
+
|
|
20
|
+
- schema_uri: "asdf://dkist.nso.edu/schemas/coupled_compound_model-1.1.0"
|
|
21
|
+
tag_uri: "asdf://dkist.nso.edu/tags/coupled_compound_model-1.1.0"
|
|
22
|
+
|
|
23
|
+
- schema_uri: "asdf://dkist.nso.edu/schemas/ravel_model-1.1.0"
|
|
24
|
+
tag_uri: "asdf://dkist.nso.edu/tags/ravel_model-1.1.0"
|
|
25
|
+
|
|
26
|
+
- schema_uri: "asdf://dkist.nso.edu/schemas/asymmetric_mapping_model-1.1.0"
|
|
27
|
+
tag_uri: "asdf://dkist.nso.edu/tags/asymmetric_mapping_model-1.1.0"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
%YAML 1.1
|
|
2
|
+
---
|
|
3
|
+
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
|
|
4
|
+
id: "asdf://dkist.nso.edu/schemas/asymmetric_mapping_model-1.1.0"
|
|
5
|
+
title: >
|
|
6
|
+
Reorder, add and drop axes with different mappings in forward and reverse transforms.
|
|
7
|
+
|
|
8
|
+
definitions:
|
|
9
|
+
mapping:
|
|
10
|
+
type: array
|
|
11
|
+
items:
|
|
12
|
+
type: integer
|
|
13
|
+
|
|
14
|
+
allOf:
|
|
15
|
+
- $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0"
|
|
16
|
+
- properties:
|
|
17
|
+
forward_n_inputs:
|
|
18
|
+
description: |
|
|
19
|
+
Explicitly set the number of input axes in the forward direction.
|
|
20
|
+
type: integer
|
|
21
|
+
backward_n_inputs:
|
|
22
|
+
description: |
|
|
23
|
+
Explicitly set the number of input axes in the backward direction.
|
|
24
|
+
type: integer
|
|
25
|
+
forward_mapping:
|
|
26
|
+
$ref: "#/definitions/mapping"
|
|
27
|
+
backward_mapping:
|
|
28
|
+
$ref: "#/definitions/mapping"
|
|
29
|
+
required: [forward_mapping, backward_mapping]
|
|
30
|
+
...
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
%YAML 1.1
|
|
2
|
+
---
|
|
3
|
+
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
|
|
4
|
+
id: "asdf://dkist.nso.edu/schemas/coupled_compound_model-1.1.0"
|
|
5
|
+
title: >
|
|
6
|
+
Send axes to different subtransforms.
|
|
7
|
+
description: |
|
|
8
|
+
This transform takes two models which share one or more inputs on the forward
|
|
9
|
+
transform, and where the left hand model's inverse is dependent on the
|
|
10
|
+
output of the right hand model's inverse output.
|
|
11
|
+
|
|
12
|
+
Take the following example with a time dependent celestial transform
|
|
13
|
+
(modelled as dependent upon the pixel coordinate for time rather than the
|
|
14
|
+
world coordinate).
|
|
15
|
+
|
|
16
|
+
The forward transform uses the "z" pixel dimension as input to both the
|
|
17
|
+
Celestial and Temporal models, this leads to the following transform in the
|
|
18
|
+
forward direction:
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
: x y z
|
|
22
|
+
: │ │ │
|
|
23
|
+
: │ │ ┌────────┤
|
|
24
|
+
: │ │ │ │
|
|
25
|
+
: ▼ ▼ ▼ ▼
|
|
26
|
+
: ┌─────────┐ ┌────────┐
|
|
27
|
+
: │Celestial│ │Temporal│
|
|
28
|
+
: └─┬───┬───┘ └───┬────┘
|
|
29
|
+
: │ │ │
|
|
30
|
+
: │ │ │
|
|
31
|
+
: │ │ │
|
|
32
|
+
: ▼ ▼ ▼
|
|
33
|
+
: lon lat time
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
The complexity is in the reverse transform, where the inverse Celestial
|
|
37
|
+
transform is also dependent upon the pixel coordinate z.
|
|
38
|
+
This means that the output of the inverse Temporal transform has to be
|
|
39
|
+
duplicated as an input to the Celestial transform's inverse.
|
|
40
|
+
This is achieved by the use of the ``Mapping`` models in
|
|
41
|
+
``CoupledCompoundModel.inverse`` to create a multi-stage compound model
|
|
42
|
+
which duplicates the output of the right hand side model::
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
: lon lat time
|
|
46
|
+
: │ │ │
|
|
47
|
+
: │ │ ▼
|
|
48
|
+
: │ │ ┌─────────┐
|
|
49
|
+
: │ │ │Temporal'│
|
|
50
|
+
: │ │ └──┬──┬───┘
|
|
51
|
+
: │ │ z │ │
|
|
52
|
+
: │ │ ┌─────┘ │
|
|
53
|
+
: │ │ │ │
|
|
54
|
+
: ▼ ▼ ▼ │
|
|
55
|
+
: ┌──────────┐ │
|
|
56
|
+
: │Celestial'│ │
|
|
57
|
+
: └─┬───┬────┘ │
|
|
58
|
+
: │ │ │
|
|
59
|
+
: ▼ ▼ ▼
|
|
60
|
+
: x y z
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
examples:
|
|
64
|
+
-
|
|
65
|
+
- A set of transforms
|
|
66
|
+
- asdf-standard-1.6.0
|
|
67
|
+
- |
|
|
68
|
+
!<asdf://dkist.nso.edu/tags/coupled_compound_model-1.1.0>
|
|
69
|
+
shared_inputs: 1
|
|
70
|
+
forward:
|
|
71
|
+
- !transform/shift-1.3.0
|
|
72
|
+
offset: 2.0
|
|
73
|
+
- !transform/shift-1.3.0
|
|
74
|
+
offset: 3.0
|
|
75
|
+
allOf:
|
|
76
|
+
- $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0"
|
|
77
|
+
- properties:
|
|
78
|
+
forward:
|
|
79
|
+
type: array
|
|
80
|
+
items:
|
|
81
|
+
$ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0"
|
|
82
|
+
shared_inputs:
|
|
83
|
+
type: number
|
|
84
|
+
required: [forward, shared_inputs]
|
|
85
|
+
...
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
%YAML 1.1
|
|
2
|
+
---
|
|
3
|
+
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
|
|
4
|
+
id: "asdf://dkist.nso.edu/schemas/ravel_model-1.1.0"
|
|
5
|
+
|
|
6
|
+
title: A model to flatten 2D indices into 1D
|
|
7
|
+
description:
|
|
8
|
+
A model which takes a pair of indices and flattens them into the corresponding index for a 1D array. This can be used as a compound with Tabular1D to enable it to be indexed as if it were Tabular2D.
|
|
9
|
+
|
|
10
|
+
allOf:
|
|
11
|
+
- $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0"
|
|
12
|
+
- properties:
|
|
13
|
+
array_shape:
|
|
14
|
+
type: array
|
|
15
|
+
order:
|
|
16
|
+
type: string
|
|
17
|
+
required: [array_shape, order]
|
{dkist-1.5.0 → dkist-1.6.0}/dkist/io/asdf/resources/schemas/varying_celestial_transform-1.0.0.yaml
RENAMED
|
@@ -12,11 +12,11 @@ allOf:
|
|
|
12
12
|
- properties:
|
|
13
13
|
crpix:
|
|
14
14
|
anyOf:
|
|
15
|
-
- tag: "core/ndarray-1.*"
|
|
15
|
+
- tag: "tag:stsci.edu:asdf/core/ndarray-1.*"
|
|
16
16
|
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
|
|
17
17
|
cdelt:
|
|
18
18
|
anyOf:
|
|
19
|
-
- tag: "core/ndarray-1.*"
|
|
19
|
+
- tag: "tag:stsci.edu:asdf/core/ndarray-1.*"
|
|
20
20
|
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
|
|
21
21
|
lon_pole:
|
|
22
22
|
anyOf:
|
|
@@ -24,11 +24,11 @@ allOf:
|
|
|
24
24
|
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
|
|
25
25
|
crval_table:
|
|
26
26
|
anyOf:
|
|
27
|
-
- tag: "core/ndarray-1.*"
|
|
27
|
+
- tag: "tag:stsci.edu:asdf/core/ndarray-1.*"
|
|
28
28
|
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
|
|
29
29
|
pc_table:
|
|
30
30
|
anyOf:
|
|
31
|
-
- tag: "core/ndarray-1.*"
|
|
31
|
+
- tag: "tag:stsci.edu:asdf/core/ndarray-1.*"
|
|
32
32
|
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
|
|
33
33
|
projection:
|
|
34
34
|
$ref: "http://stsci.edu/schemas/asdf/transform/transform-1.2.0"
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
%YAML 1.1
|
|
2
|
+
---
|
|
3
|
+
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
|
|
4
|
+
id: "asdf://dkist.nso.edu/schemas/varying_celestial_transform-1.1.0"
|
|
5
|
+
|
|
6
|
+
title: A varying FITS-like celestial transform.
|
|
7
|
+
description:
|
|
8
|
+
A model which represents a FITS-like celestial WCS transform which varies over a third pixel input.
|
|
9
|
+
|
|
10
|
+
allOf:
|
|
11
|
+
- $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0"
|
|
12
|
+
- properties:
|
|
13
|
+
crpix:
|
|
14
|
+
anyOf:
|
|
15
|
+
- tag: "tag:stsci.edu:asdf/core/ndarray-1.*"
|
|
16
|
+
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
|
|
17
|
+
cdelt:
|
|
18
|
+
anyOf:
|
|
19
|
+
- tag: "tag:stsci.edu:asdf/core/ndarray-1.*"
|
|
20
|
+
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
|
|
21
|
+
lon_pole:
|
|
22
|
+
anyOf:
|
|
23
|
+
- type: number
|
|
24
|
+
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
|
|
25
|
+
crval_table:
|
|
26
|
+
anyOf:
|
|
27
|
+
- tag: "tag:stsci.edu:asdf/core/ndarray-1.*"
|
|
28
|
+
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
|
|
29
|
+
pc_table:
|
|
30
|
+
anyOf:
|
|
31
|
+
- tag: "tag:stsci.edu:asdf/core/ndarray-1.*"
|
|
32
|
+
- tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
|
|
33
|
+
projection:
|
|
34
|
+
$ref: "http://stsci.edu/schemas/asdf/transform/transform-1.3.0"
|
|
35
|
+
|
|
36
|
+
required: [crpix, cdelt, lon_pole, crval_table, pc_table, projection]
|
|
37
|
+
additionalProperties: true
|
|
38
|
+
...
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import matplotlib.pyplot as plt
|
|
2
|
+
import numpy as np
|
|
3
|
+
import pytest
|
|
4
|
+
|
|
5
|
+
from dkist import load_dataset
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@pytest.mark.benchmark
|
|
9
|
+
def test_load_asdf(benchmark, large_visp_dataset_file):
|
|
10
|
+
benchmark(load_dataset, large_visp_dataset_file)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@pytest.mark.benchmark
|
|
14
|
+
def test_pixel_to_world(benchmark, visp_dataset_no_headers, large_visp_dataset):
|
|
15
|
+
ds = visp_dataset_no_headers
|
|
16
|
+
# pxcoords2 = []
|
|
17
|
+
# for size in ds2.wcs.pixel_shape:
|
|
18
|
+
# pxcoords2.append(np.arange(size))
|
|
19
|
+
|
|
20
|
+
pxcoords = np.mgrid[:ds.wcs.pixel_shape[0]:50,
|
|
21
|
+
:ds.wcs.pixel_shape[1]:50,
|
|
22
|
+
:ds.wcs.pixel_shape[2]:50,
|
|
23
|
+
:ds.wcs.pixel_shape[3]:5]
|
|
24
|
+
|
|
25
|
+
benchmark(ds.wcs.pixel_to_world_values, *pxcoords)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@pytest.mark.benchmark
|
|
29
|
+
@pytest.mark.parametrize("axes", [
|
|
30
|
+
["y", None, None, "x"],
|
|
31
|
+
])
|
|
32
|
+
def test_plot_dataset(benchmark, axes, visp_dataset_no_headers):
|
|
33
|
+
@benchmark
|
|
34
|
+
def plot_and_save_fig(ds=visp_dataset_no_headers, axes=axes):
|
|
35
|
+
ds.plot(plot_axes=axes)
|
|
36
|
+
plt.savefig("tmpplot")
|
|
37
|
+
plt.close()
|