Bug #1581
Updated by Knödlseder Jürgen about 9 years ago
On Debian and FreeBSD, the following code leads to an exception:
<pre>
>>> import gammalib
>>> m=gammalib.GSkyMap("CAR","CEL",0.0,0.0,1.0,1.0,2,2) m=gammalib.GSkymap("CAR","CEL",0.0,0.0,1.0,1.0,2,2)
>>> for pix in m:
... print(pix)
...
0.0
0.0
0.0
0.0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/jenkins/jenkins/install/gammalib-integrate-os/lib/python2.6/site-packages/gammalib/sky.py", line 650, in __getitem__
return _sky.GSkyMap___getitem__(self, *args)
RuntimeError: *** ERROR in GSkyMap::operator(int&, int&): Sky map pixel index 4 is outside the valid range [0,3].
</pre>
For some reason the exception is not catched.
<pre>
>>> import gammalib
>>> m=gammalib.GSkyMap("CAR","CEL",0.0,0.0,1.0,1.0,2,2) m=gammalib.GSkymap("CAR","CEL",0.0,0.0,1.0,1.0,2,2)
>>> for pix in m:
... print(pix)
...
0.0
0.0
0.0
0.0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/jenkins/jenkins/install/gammalib-integrate-os/lib/python2.6/site-packages/gammalib/sky.py", line 650, in __getitem__
return _sky.GSkyMap___getitem__(self, *args)
RuntimeError: *** ERROR in GSkyMap::operator(int&, int&): Sky map pixel index 4 is outside the valid range [0,3].
</pre>
For some reason the exception is not catched.