Skip to content

Commit

Permalink
aperture name lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
JarronL committed Apr 8, 2020
1 parent 762badf commit 8f01cf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pynrc/maths/coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def Tel2Sci_info(channel, coords, output="Sci"):
try:
detector_position = ap.convert(V2, V3, frame_from='Tel', frame_to=output)
except TypeError:
detector_position = ap.convert(V2, V3, 'Tel', output)
detector_position = ap.convert(V2, V3, 'tel', output.lower())


return detector, detector_position
Expand Down
2 changes: 1 addition & 1 deletion pynrc/nrc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1711,7 +1711,7 @@ def field_coeff(filter, coeff0, force=False, save=True, save_name=None, **kwargs
for (v2, v3) in values:
# Get the detector and pixel position
coords = (v2*60, v3*60) # in arcsec
det, det_pos = Tel2Sci_info(channel, coords, output="Sci")
det, det_pos = Tel2Sci_info(channel, coords, output="sci")

_log.debug('V2/V3 Coordinates and det pixel (sci): ({}), ({})'.format((v2, v3), det_pos))

Expand Down

0 comments on commit 8f01cf8

Please sign in to comment.