Skip to content

Commit

Permalink
Set to just get 1 day of telemetry for temperatures
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanconn committed Jul 16, 2019
1 parent 5e1a8cb commit b1bc7d1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions starcheck/calc_ccd_temps.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,13 @@ def get_ccd_temps(oflsdir, outdir='out',
proc['datestart'] = DateTime(tstart).date
proc['datestop'] = DateTime(tstop).date

# Get temperature telemetry for 30 days prior to
# min(tstart, NOW, run_start_time) where run_start_time is basically
# a mock NOW for regression testing.
tlm = get_telem_values(min(tstart, tnow, run_start_time.secs),
# Get temperature telemetry for 1 days prior to
# min(last available telem, backstop tstart, NOW, run_start_time)
# where run_start_time is basically a mock NOW for regression testing.
msid_range = fetch.get_time_range('aacccdpt', format='secs')
tlm = get_telem_values(min(msid_range[1], tstart, DateTime().secs, run_start_time.secs),
['aacccdpt'],
days=30)
days=1)

states = get_week_states(tstart, tstop, bs_cmds, tlm)

Expand Down

0 comments on commit b1bc7d1

Please sign in to comment.