Skip to content

Commit

Permalink
pysiaf ap.convert syntax change
Browse files Browse the repository at this point in the history
  • Loading branch information
JarronL committed Apr 8, 2020
1 parent a3b7404 commit 762badf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pynrc/maths/coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ def Tel2Sci_info(channel, coords, output="Sci"):
detector = detnames[ind]
apname = apnames[ind]
ap = mysiaf[apname]
detector_position = ap.convert(V2, V3, frame_from='Tel', frame_to=output)
try:
detector_position = ap.convert(V2, V3, frame_from='Tel', frame_to=output)
except TypeError:
detector_position = ap.convert(V2, V3, 'Tel', output)


return detector, detector_position

Expand Down

0 comments on commit 762badf

Please sign in to comment.