mirror of
https://github.com/meteoinfo/MeteoInfo.git
synced 2025-12-08 20:36:05 +00:00
6 lines
149 B
Python
6 lines
149 B
Python
|
|
from ...core import numeric as np
|
|
|
|
def in_bounds(x, lb, ub):
|
|
"""Check if a point lies within bounds."""
|
|
return np.all((x >= lb) & (x <= ub)) |