Skip to content

Commit

Permalink
features: doc improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jdtsmith committed May 9, 2024
1 parent afc0bc9 commit ef094af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pahfit/features/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def value_bounds(val, bounds):
Returns:
-------
The value, if unbounded, or a 3 element tuple (value, min, max).
Any missing bound is replaced with the numpy `masked' value.
A 3 element tuple (value, min, max).
Any missing bound is replaced with the numpy.nan value.
Raises:
-------
Expand All @@ -82,7 +82,7 @@ def value_bounds(val, bounds):
if val is None:
val = np.ma.masked
if not bounds:
return (val,) + 2 * (np.nan,) # Fixed
return (val,) + 2 * (np.nan,) # (val,nan,nan) indicates fixed
ret = [val]
for i, b in enumerate(bounds):
if isinstance(b, str):
Expand Down

0 comments on commit ef094af

Please sign in to comment.