Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iaraota opened this issue Nov 30, 2023 · 0 comments

Comments

@iaraota
Copy link
Collaborator

iaraota commented Nov 30, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant