Skip to content

Commit

Permalink
move fitswcs and sliced_wcs converters to wcs submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
ViciousEagle03 committed Sep 19, 2024
1 parent 53df278 commit a016e2b
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 9 deletions.
4 changes: 3 additions & 1 deletion asdf_astropy/converters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"AsdfFitsConverter",
"AstropyFitsConverter",
"FitsWCSConverter",
"SlicedWCSConverter",
"ColumnConverter",
"AstropyTableConverter",
"AsdfTableConverter",
Expand Down Expand Up @@ -52,7 +53,7 @@
SkyCoordConverter,
SpectralCoordConverter,
)
from .fits import AsdfFitsConverter, AstropyFitsConverter, FitsConverter, FitsWCSConverter
from .fits import AsdfFitsConverter, AstropyFitsConverter, FitsConverter
from .table import AsdfTableConverter, AstropyTableConverter, ColumnConverter, NdarrayMixinConverter
from .time import TimeConverter, TimeDeltaConverter
from .transform import (
Expand All @@ -75,3 +76,4 @@
UnitsMappingConverter,
)
from .unit import EquivalencyConverter, MagUnitConverter, QuantityConverter, UnitConverter
from .wcs import FitsWCSConverter, SlicedWCSConverter
2 changes: 0 additions & 2 deletions asdf_astropy/converters/fits/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"FitsConverter",
"AsdfFitsConverter",
"AstropyFitsConverter",
"FitsWCSConverter",
]

from .fits import AsdfFitsConverter, AstropyFitsConverter, FitsConverter
from .fitswcs import FitsWCSConverter
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
__all__ = [
"FitsWCSConverter",
"SlicedWCSConverter",
]

from .fitswcs import FitsWCSConverter
from .slicedwcs import SlicedWCSConverter
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ def create_tabular_wcs():

@pytest.mark.parametrize("wcs", create_tabular_wcs())
@pytest.mark.filterwarnings("ignore::astropy.wcs.wcs.FITSFixedWarning")
@pytest.mark.filterwarnings(
"ignore:Some non-standard WCS keywords were excluded:astropy.utils.exceptions.AstropyWarning",
)
def test_twcs_serialization(wcs, tmp_path):
file_path = tmp_path / "test_wcs.asdf"
with asdf.AsdfFile() as af:
Expand Down
4 changes: 2 additions & 2 deletions asdf_astropy/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
from .converters.coordinates.sky_coord import SkyCoordConverter
from .converters.coordinates.spectral_coord import SpectralCoordConverter
from .converters.fits.fits import AsdfFitsConverter, AstropyFitsConverter
from .converters.fits.fitswcs import FitsWCSConverter
from .converters.slicedwcs.slicedwcs import SlicedWCSConverter
from .converters.table.table import AsdfTableConverter, AstropyTableConverter, ColumnConverter, NdarrayMixinConverter
from .converters.time.time import TimeConverter
from .converters.time.time_delta import TimeDeltaConverter
Expand All @@ -33,6 +31,8 @@
from .converters.unit.magunit import MagUnitConverter
from .converters.unit.quantity import QuantityConverter
from .converters.unit.unit import UnitConverter
from .converters.wcs.fitswcs import FitsWCSConverter
from .converters.wcs.slicedwcs import SlicedWCSConverter

__all__ = [
"TRANSFORM_CONVERTERS",
Expand Down

0 comments on commit a016e2b

Please sign in to comment.