Skip to content

Commit

Permalink
Replace type hints that are now private
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Jun 20, 2024
1 parent 843b349 commit 1710393
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions swiftsimio/accelerated.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def read_ranges_from_file_unchunked(
ranges: np.ndarray,
output_shape: Tuple,
output_type: type = np.float64,
columns: np.lib.index_tricks.IndexExpression = np.s_[:],
columns: slice = np.s_[:],
) -> np.array:
"""
Takes a hdf5 dataset, and the set of ranges from
Expand All @@ -107,7 +107,7 @@ def read_ranges_from_file_unchunked(
output_type: type, optional
``numpy`` type of output elements. If not supplied, we assume ``np.float64``.
columns: np.lib.index_tricks.IndexExpression, optional
columns: slice, optional
Selector for columns if using a multi-dimensional array. If the array is only
a single dimension this is not used.
Expand Down Expand Up @@ -368,7 +368,7 @@ def read_ranges_from_file_chunked(
ranges: np.ndarray,
output_shape: Tuple,
output_type: type = np.float64,
columns: np.lib.index_tricks.IndexExpression = np.s_[:],
columns: slice = np.s_[:],
) -> np.array:
"""
Takes a hdf5 dataset, and the set of ranges from
Expand All @@ -391,7 +391,7 @@ def read_ranges_from_file_chunked(
output_type: type, optional
``numpy`` type of output elements. If not supplied, we assume ``np.float64``.
columns: np.lib.index_tricks.IndexExpression, optional
columns: slice, optional
Selector for columns if using a multi-dimensional array. If the array is only
a single dimension this is not used.
Expand Down Expand Up @@ -462,7 +462,7 @@ def read_ranges_from_file(
ranges: np.ndarray,
output_shape: Tuple,
output_type: type = np.float64,
columns: np.lib.index_tricks.IndexExpression = np.s_[:],
columns: slice = np.s_[:],
) -> np.array:
"""
Wrapper function to correctly select which version of read_ranges_from_file
Expand All @@ -483,7 +483,7 @@ def read_ranges_from_file(
output_type: type, optional
``numpy`` type of output elements. If not supplied, we assume ``np.float64``.
columns: np.lib.index_tricks.IndexExpression, optional
columns: slice, optional
Selector for columns if using a multi-dimensional array. If the array is only
a single dimension this is not used.
Expand Down
2 changes: 1 addition & 1 deletion swiftsimio/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ def generate_getter(
cosmo_factor: cosmo_factor,
description: str,
compression: str,
columns: Union[None, np.lib.index_tricks.IndexExpression] = None,
columns: Union[None, slice] = None,
):
"""
Generates a function that:
Expand Down

0 comments on commit 1710393

Please sign in to comment.