-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
process.py, lines 130ff are
observations = list(
# Note: filter(None, <collection>) removes falsy values from <collection>,
# in this case possible None values returned by align.
filter(
None,
(
align(sesh, row, is_diagnostic)
for row in rows
if start_date <= row.time <= end_date
),
)
)and needs a guard on row.time to prevent errors:
observations = list(
# Note: filter(None, <collection>) removes falsy values from <collection>,
# in this case possible None values returned by align.
filter(
None,
(
align(sesh, row, is_diagnostic)
for row in rows
if row.time is not None and (start_date <= row.time <= end_date)
),
)
)or else revert to checking time after align has been called on the row. The original idea was to not cause it to do extra work on values that would be filtered out by time. This is still true but may be slightly on the side of over-optimization.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels