Skip to content

Commit

Permalink
chore: update type annotation and docstring for closest_resolution()
Browse files Browse the repository at this point in the history
  • Loading branch information
synchon committed Feb 9, 2024
1 parent fb58b90 commit 1ffaeb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions junifer/data/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@


def closest_resolution(
resolution: Optional[float],
resolution: Optional[Union[float, int]],
valid_resolution: Union[List[float], List[int], np.ndarray],
) -> Union[float, int]:
"""Find the closest resolution.
Parameters
----------
resolution : float, optional
resolution : float or int, optional
The given resolution. If None, will return the highest resolution
(default None).
valid_resolution : list of float or int, or np.ndarray
Expand Down

0 comments on commit 1ffaeb4

Please sign in to comment.