Skip to content

Commit

Permalink
in agasc supplement processing, only consider observations before the…
Browse files Browse the repository at this point in the history
… last dwell in kadi.events
  • Loading branch information
javierggt committed Aug 30, 2023
1 parent 6552f4e commit 39ed6db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion agasc/supplement/magnitudes/star_obs_catalogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
from astropy import table

from chandra_aca.transform import yagzag_to_pixels
from kadi import commands
from kadi import commands, events
from cxotime import CxoTime


STARS_OBS = None
Expand Down Expand Up @@ -43,6 +44,9 @@ 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'])
star_obs = star_obs[star_obs['obs_start'] <= max_time]

return star_obs


Expand Down

0 comments on commit 39ed6db

Please sign in to comment.