nhlib: Disaggregation calculation crashes when a source produces no ruptures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake (deprecated) |
Fix Released
|
High
|
Lars Butler |
Bug Description
I encountered this crash while trying to use the nhlib disagg calculator in OQ Engine. This is the error I get:
ValueError(
Traceback (most recent call last):
File "/Users/
task_
File "/Users/
result = func(*args, **kwargs)
File "/Users/
compute_
File "/Users/
**calc_kwargs)
File "/Users/
coord_
File "/Users/
int(
ValueError: zero-size array to minimum.reduce without identity
Doing some debugging, I discovered that this only occurs when a source produces no ruptures.
Changed in openquake: | |
status: | In Progress → Fix Committed |
Changed in openquake: | |
status: | Fix Committed → Fix Released |
Also: This is only occurs when I use a rupture-to-site distance filter. Removing the filter prevents this error from happening.