Skip to content

Commit

Permalink
Adding type hints for get_tolerance()
Browse files Browse the repository at this point in the history
  • Loading branch information
WeatherGod committed Feb 8, 2023
1 parent 01565a6 commit 612634c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/climate_indices/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def count_zeros_and_non_missings(


# ------------------------------------------------------------------------------
def get_tolerance(dim):
def get_tolerance(dim: np.ndarray) -> float:
"""
dynamic threshold absolute tolerance parameter np.allclose
derived from (smallest) absolute grid size along dimension dim.
Expand Down

0 comments on commit 612634c

Please sign in to comment.