Skip to content

Commit

Permalink
Changed (l,m) to lm in function calls for python3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
HERA-Observer authored and pkgw committed Jun 19, 2018
1 parent bb2cee7 commit df54c1f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aipy_src/healpix.py
Expand Up @@ -109,10 +109,12 @@ def lmax(self):
def mmax(self):
"""Return the maximum M."""
return self._mmax
def __getitem__(self, (l, m)):
def __getitem__(self, lm):
l,m = lm
i = self._alm.getidx(self._lmax, l, m)
return self.data[i]
def __setitem__(self, (l, m), val):
def __setitem__(self, lm, val):
l,m = lm
i = self._alm.getidx(self._lmax, l, m)
self.data[i] = val
def to_map(self, nside, pixwin=False, fwhm=0.0, sigma=None,
Expand Down

0 comments on commit df54c1f

Please sign in to comment.