Skip to content

The function 'combined_time_volume' encounters an exception when handling empty sequences. #388

Description

@iaraota

Line 273 of /gwsumm/plot/range.py is encountering an exception:

  File "/home/detchar/.conda/envs/ligo-summary-3.10/lib/python3.10/site-packages/gwsumm/plot/range.py", line 273, in combined_time_volume
    min_x0 = min([r.x0.value for r in allranges])
ValueError: min() arg is an empty sequence

When the range data is not available. Moreover, I think line 279 (allranges[i] = r.pad((missing, 0))) may produce and IndexError exception.

To reproduce this error add #-read = False, which avoids fetching the data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions