Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 28, 2025
1 parent a81053d commit b8863ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyuvsim/uvsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,10 @@ def make_visibility(self):
vij = np.sum(vij, axis=2)

Nfeeds = vij.shape[0]
assert (Nfeeds<=2)
assert Nfeeds <= 2
# Reshape to be [xx] for one feed or [xx, yy, xy, yx] for two feeds
if Nfeeds == 1:
vis_vector = np.asarray([vij[0,0]])
vis_vector = np.asarray([vij[0, 0]])

Check warning on line 398 in src/pyuvsim/uvsim.py

View check run for this annotation

Codecov / codecov/patch

src/pyuvsim/uvsim.py#L398

Added line #L398 was not covered by tests
elif Nfeeds == 2:
vis_vector = np.asarray([vij[0, 0], vij[1, 1], vij[0, 1], vij[1, 0]])
return vis_vector
Expand Down

0 comments on commit b8863ac

Please sign in to comment.