Skip to content

Commit

Permalink
Fix compatibility with older numpy versions
Browse files Browse the repository at this point in the history
  • Loading branch information
bhazelton committed Jun 27, 2024
1 parent 29ce196 commit 15698f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyuvdata/utils/bls.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def baseline_to_antnums(baseline, *, Nants_telescope): # noqa: N803
np.ascontiguousarray(baseline, dtype=np.uint64)
)
if return_array:
return np.astype(ant1, int), np.astype(ant2, int)
return ant1.astype(int), ant2.astype(int)
else:
return int(ant1.item(0)), int(ant2.item(0))

Expand Down

0 comments on commit 15698f2

Please sign in to comment.