Skip to content

Commit

Permalink
Fixing one last warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kartographer committed Nov 23, 2024
1 parent be12020 commit 51ce150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyuvdata/telescopes.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ def update_params_from_known_telescopes(
overwrite or self.antenna_diameters is None
):
antenna_diameters = np.atleast_1d(telescope_dict["antenna_diameters"])
if antenna_diameters.size == 1:
if antenna_diameters.size == 1 and self.Nants is not None:
known_telescope_list.append("antenna_diameters")
self.antenna_diameters = (
np.zeros(self.Nants, dtype=float) + antenna_diameters[0]
Expand Down

0 comments on commit 51ce150

Please sign in to comment.