Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 6, 2024
1 parent e309636 commit 96b8100
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 25 deletions.
8 changes: 4 additions & 4 deletions ndcube/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@


__all__ = [
'NDCube',
'NDCubeSequence',
"NDCollection",
"ExtraCoords",
"GlobalCoords",
"ExtraCoordsABC",
"GlobalCoords",
"GlobalCoordsABC",
"NDCollection",
'NDCube',
"NDCubeBase",
'NDCubeSequence',
"NDCubeSequenceBase",
"__version__",
]
9 changes: 7 additions & 2 deletions ndcube/extra_coords/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@
TimeTableCoordinate,
)

__all__ = ['TimeTableCoordinate', "MultipleTableCoordinate",
'SkyCoordTableCoordinate', 'QuantityTableCoordinate', "BaseTableCoordinate"]
__all__ = [
"BaseTableCoordinate",
"MultipleTableCoordinate",
'QuantityTableCoordinate',
'SkyCoordTableCoordinate',
'TimeTableCoordinate',
]
2 changes: 1 addition & 1 deletion ndcube/extra_coords/extra_coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
TimeTableCoordinate,
)

__all__ = ['ExtraCoordsABC', 'ExtraCoords']
__all__ = ['ExtraCoords', 'ExtraCoordsABC']


class ExtraCoordsABC(abc.ABC):
Expand Down
2 changes: 1 addition & 1 deletion ndcube/extra_coords/table_coord.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
except ImportError:
pass

__all__ = ['TimeTableCoordinate', 'SkyCoordTableCoordinate', 'QuantityTableCoordinate', "BaseTableCoordinate", "MultipleTableCoordinate"]
__all__ = ["BaseTableCoordinate", "MultipleTableCoordinate", 'QuantityTableCoordinate', 'SkyCoordTableCoordinate', 'TimeTableCoordinate']


class Length1Tabular(_Tabular):
Expand Down
8 changes: 4 additions & 4 deletions ndcube/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
from ndcube import NDCube, NDCubeSequence

__all__ = [
'figure_test',
'get_hash_library_name',
'assert_extra_coords_equal',
'assert_metas_equal',
'assert_cubes_equal',
'assert_cubesequences_equal',
'assert_extra_coords_equal',
'assert_metas_equal',
'assert_wcs_are_equal',
'figure_test',
'get_hash_library_name',
]


Expand Down
8 changes: 6 additions & 2 deletions ndcube/utils/cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@

from ndcube.utils import wcs as wcs_utils

__all__ = ["sanitize_wcs", "sanitize_crop_inputs", "get_crop_item_from_points",
"propagate_rebin_uncertainties"]
__all__ = [
"get_crop_item_from_points",
"propagate_rebin_uncertainties",
"sanitize_crop_inputs",
"sanitize_wcs",
]


def sanitize_wcs(func):
Expand Down
2 changes: 1 addition & 1 deletion ndcube/utils/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""
import warnings

__all__ = ["NDCubeWarning", "NDCubeUserWarning", "NDCubeDeprecationWarning", "warn_user", "warn_deprecated"]
__all__ = ["NDCubeDeprecationWarning", "NDCubeUserWarning", "NDCubeWarning", "warn_deprecated", "warn_user"]


class NDCubeWarning(Warning):
Expand Down
2 changes: 1 addition & 1 deletion ndcube/utils/misc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import astropy.units as u

__all__ = ['unique_sorted', 'convert_quantities_to_units']
__all__ = ['convert_quantities_to_units', 'unique_sorted']


def unique_sorted(iterable):
Expand Down
25 changes: 17 additions & 8 deletions ndcube/utils/wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,23 @@
from astropy.wcs.utils import pixel_to_pixel
from astropy.wcs.wcsapi import BaseHighLevelWCS, BaseLowLevelWCS, low_level_api

__all__ = ['array_indices_for_world_objects', 'convert_between_array_and_pixel_axes',
'calculate_world_indices_from_axes', 'wcs_ivoa_mapping',
'pixel_axis_to_world_axes', 'world_axis_to_pixel_axes',
'pixel_axis_to_physical_types', 'physical_type_to_pixel_axes',
'physical_type_to_world_axis', 'get_dependent_pixel_axes',
'get_dependent_array_axes', 'get_dependent_world_axes',
'get_dependent_physical_types', 'array_indices_for_world_objects',
'validate_physical_types']
__all__ = [
'array_indices_for_world_objects',
'array_indices_for_world_objects',
'calculate_world_indices_from_axes',
'convert_between_array_and_pixel_axes',
'get_dependent_array_axes',
'get_dependent_physical_types',
'get_dependent_pixel_axes',
'get_dependent_world_axes',
'physical_type_to_pixel_axes',
'physical_type_to_world_axis',
'pixel_axis_to_physical_types',
'pixel_axis_to_world_axes',
'validate_physical_types',
'wcs_ivoa_mapping',
'world_axis_to_pixel_axes',
]


class TwoWayDict(UserDict):
Expand Down
2 changes: 1 addition & 1 deletion ndcube/visualization/descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
MISSING_ANIMATORS_ERROR_MSG = ("mpl_animators cannot be imported, so the default plotting "
"functionality is disabled. Please install mpl_animators")

__all__ = ['PlotterDescriptor', 'MISSING_MATPLOTLIB_ERROR_MSG', 'MISSING_ANIMATORS_ERROR_MSG']
__all__ = ['MISSING_ANIMATORS_ERROR_MSG', 'MISSING_MATPLOTLIB_ERROR_MSG', 'PlotterDescriptor']


class PlotterDescriptor:
Expand Down

0 comments on commit 96b8100

Please sign in to comment.