Skip to content

Commit

Permalink
fix(SiderealGrouper): crash at finish if no timestreams processed
Browse files Browse the repository at this point in the history
  • Loading branch information
jrs65 committed Mar 11, 2020
1 parent cdfa35b commit 9e09d1e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions draco/analysis/sidereal.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,8 @@ def process_finish(self):
Returns the timestream of the final sidereal day if it's long
enough, otherwise returns :obj:`None`.
"""

# If we are here there is no more data coming, we just need to process any remaining data
tstream_all = self._process_current_lsd()

return tstream_all
return self._process_current_lsd() if self._timestream_list else None

def _process_current_lsd(self):
# Combine the current set of files into a timestream
Expand Down

0 comments on commit 9e09d1e

Please sign in to comment.