Skip to content

Commit

Permalink
Small bug fix for RingsSkyMap.findTract().
Browse files Browse the repository at this point in the history
  • Loading branch information
yasudank committed Apr 17, 2014
1 parent 5647614 commit f202a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/skymap/ringsSkyMap.py
Expand Up @@ -131,7 +131,7 @@ def findTract(self, coord):
# Northern cap
return self[-1]

ringNum = int((dec - firstRingStart) / self._ringSize - 0.5)
ringNum = int((dec - firstRingStart) / self._ringSize)
tractNum =int(math.fmod(ra - self.config.raStart, 2*math.pi) /
(2*math.pi/self._ringNums[ringNum]) + 0.5)

Expand Down

0 comments on commit f202a77

Please sign in to comment.