Skip to content

Commit

Permalink
more pep8 corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
rlbyrne committed Jun 29, 2018
1 parent 389e4aa commit 5c1262d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyuvdata/uvdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,14 +791,14 @@ def set_uvws_from_antenna_positions(self, allow_phasing=False):
antenna_locs_ENU = uvutils.ENU_from_ECEF(
(self.antenna_positions + self.telescope_location).T,
*self.telescope_location_lat_lon_alt
).T
).T
uvw_array = np.zeros((self.baseline_array.size, 3))
for ant1 in list(set(self.ant_1_array)):
for ant2 in list(set(self.ant_2_array)):
baseline_inds = np.intersect1d(
np.where(self.ant_1_array == ant1)[0],
np.where(self.ant_2_array == ant2)[0]
)
)
uvw_array[baseline_inds, :] = (antenna_locs_ENU[ant2, :]
- antenna_locs_ENU[ant1, :])
self.uvw_array = uvw_array
Expand Down

0 comments on commit 5c1262d

Please sign in to comment.