Skip to content

Commit

Permalink
[skip hazardlib]
Browse files Browse the repository at this point in the history
  • Loading branch information
micheles committed Dec 10, 2018
1 parent ea9b2ee commit af75de3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openquake/commonlib/readinput.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,8 @@ def get_composite_source_model(oqparam, monitor=None, in_memory=True,
if (srcfilter and oqparam.split_sources and
oqparam.prefilter_sources != 'no' and
oqparam.calculation_mode not in 'ucerf_hazard ucerf_risk'):
if oqparam.prefilter_sources == 'rtree':
if (oqparam.prefilter_sources == 'rtree' and
oqparam.calculation_mode != 'ucerf_classical'):
# rtree can be used only with processpool, otherwise one gets an
# RTreeError: Error in "Index_Create": Spatial Index Error:
# IllegalArgumentException: SpatialIndex::DiskStorageManager:
Expand Down

0 comments on commit af75de3

Please sign in to comment.