Skip to content

Commit

Permalink
Improve code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
taldcroft committed Jun 28, 2023
1 parent e5ecf99 commit 1d0dedf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cheta/derived/comps.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,9 @@ def calc_pitch_roll_obc(tstart: float, tstop: float, pitch_roll: str):
# Pad by 12 minutes on each side to ensure ephemeris data are available.
tlm = dp.fetch(tstart - 720, tstop + 720)

# Filter bad data values
# Filter bad data values. The `dp.fetch` above sets bad over intervals where any of
# the inputs are missing and calling interpolate like below will cut those out.
# See PR #250 for more details.
tlm.interpolate(times=tlm.times)
tlm.bads = np.zeros(len(tlm.times), dtype=bool)

Expand Down Expand Up @@ -744,7 +746,8 @@ def get_msid_attrs(self, tstart, tstop, msid, msid_args):
tlms.append((np.array([], dtype=float), np.array([], dtype=float)))
continue

# Get states of either NPNT / NMAN or NSUN
# Get states of either NPNT / NMAN or NSUN which cover exactly the
# time span of the ofp_state interval.
vals = np.isin(dat.vals, ["NPNT", "NMAN"])
states_npnt_nman = logical_intervals(
dat.times,
Expand Down

0 comments on commit 1d0dedf

Please sign in to comment.