Commit ff26f4786a62a7499abf3bc8859e8bc9ca327374

Authored by Jürgen Knödlseder
1 parent cd6ab70a

Remove typecasting

Showing 1 changed file with 1 additions and 1 deletions
pyext/ctools/obsutils.py
... ... @@ -196,7 +196,7 @@ def cntmap(obs, proj="TAN", coord="GAL", xval=0.0, yval=0.0, \
196 196 for event in run.events():
197 197  
198 198 # Determine sky pixel
199   - skydir = gammalib.GCTAInstDir(event.dir()).dir()
  199 + skydir = event.dir().dir()
200 200 pixel = map.dir2inx(skydir)
201 201  
202 202 # Set pixel
... ...