Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
javierggt committed Sep 7, 2023
1 parent 39ed6db commit f78b572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agasc/supplement/magnitudes/star_obs_catalogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_star_observations(start=None, stop=None, obsid=None):

star_obs.add_index(['mp_starcat_time'])

max_time = CxoTime(events.dwells.all().table[-1]['stop'])
max_time = events.dwells.all().latest('tstart').stop
star_obs = star_obs[star_obs['obs_start'] <= max_time]

return star_obs
Expand Down

0 comments on commit f78b572

Please sign in to comment.