Skip to content

Commit

Permalink
Added time check
Browse files Browse the repository at this point in the history
  • Loading branch information
altuson committed Jul 22, 2024
1 parent 22d2c00 commit 73488c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tess_ephem/ephem.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ def predict(
One row for each time stamp that matched a TESS observation.
"""

if not isinstance(time, Time):
time = Time(time)
if time.isscalar:
time = time.reshape((1,))

sky = self.predict_sky(time)
crd = SkyCoord(sky.ra, sky.dec, unit="deg")
log.info("Started matching the ephemeris to TESS observations")
Expand Down

0 comments on commit 73488c3

Please sign in to comment.