astropy / astroplan

Observation planning package for astronomers – maintainer @bmorris3
https://astroplan.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
198 stars 109 forks source link

Convert FixedTargets passed to `get_body` into SkyCoords #568

Closed bmorris3 closed 11 months ago

bmorris3 commented 11 months ago

@pmaxted reported in #567 that when a (list of) FixedTarget is passed to methods that calculate lunar coordinates, the calls to get_body introduced in #558 must convert those FixedTargets to SkyCoords before computing separations. This oversight wasn't noticed in the tests because the relevant tests rely on SkyCoords.

This PR calls get_skycoords before passing the targets to get_body.

Fixes #567