From 9e09d1e4b7f30585d0037bdd44a47cca056ac40c Mon Sep 17 00:00:00 2001 From: Richard Shaw Date: Tue, 10 Mar 2020 16:41:02 -0700 Subject: [PATCH] fix(SiderealGrouper): crash at finish if no timestreams processed --- draco/analysis/sidereal.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/draco/analysis/sidereal.py b/draco/analysis/sidereal.py index 53c8634f1..b6ee91f7b 100644 --- a/draco/analysis/sidereal.py +++ b/draco/analysis/sidereal.py @@ -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