spacetelescope / pysiaf

Handling of Science Instrument Aperture Files (SIAF) for space telescopes
https://pysiaf.readthedocs.io
BSD 3-Clause "New" or "Revised" License
13 stars 28 forks source link

det coordinates not working #346

Open Russell-Ryan opened 5 months ago

Russell-Ryan commented 5 months ago

I am trying to do coordinate conversions between det and sci reference frames for HST instruments. pysiaf gives this error on this MWE:

import pysiaf

s = pysiaf.Siaf('hst')
A = s['JWFC']

v2,v3 = A.det_to_tel(1000,1000)

It says:

raise TypeError('Angle has to be a float. It is of type {} and has the value {}'.format(
TypeError: Angle has to be a float. It is of type <class 'NoneType'> and has the value None

I've tried a few other apertures, and it gives the same error.