Skip to content

Commit

Permalink
perf: allow specifying checks
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Oct 21, 2024
1 parent f585f9c commit 691e962
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pyuvdata/uvdata/initializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ def new_uvdata(
phase_center_id_array: np.ndarray | None = None,
x_orientation: Literal["east", "north", "e", "n", "ew", "ns"] | None = None,
astrometry_library: str | None = None,
check_kw: dict | None = None,
**kwargs,
):
"""Initialize a new UVData object from keyword arguments.
Expand Down Expand Up @@ -667,5 +668,5 @@ def new_uvdata(
else:
obj.nsample_array = np.ones(shape, dtype=float)

obj.check()
obj.check(**(check_kw or {}))
return obj

0 comments on commit 691e962

Please sign in to comment.