Skip to content

Commit

Permalink
implement fix suggested by Ben; test case runs successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
dstndstn committed Sep 6, 2017
1 parent 1a67541 commit 91c9d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/desiutil/brick.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def brick_radec(self, ra, dec):
ara, adec = self._array_radec(ra, dec)
irow, icol = self._row_col(ara, adec)
if np.isscalar(ra):
xra = self._center_ra[irow][icol]
xra = self._center_ra[irow[0]][icol]
xdec = self._center_dec[irow]
else:
xra = np.array([self._center_ra[i][j] for i,j in zip(irow, icol)])
Expand Down

0 comments on commit 91c9d4c

Please sign in to comment.