When working with a large number of sites, the following error can appear:
/site-packages/numpy/linalg/linalg.py", line 100, in _raise_linalgerror_nonposdef
raise LinAlgError("Matrix is not positive definite")
numpy.linalg.LinAlgError: Matrix is not positive definite
We can improve the error message. For instance:
Correlation matrix is not positively defined.
Try to reduce number of hazard sites, or set to `no` the parameters `spatial_correlation` and `cross_correlation`.
Mor info at https://docs.openquake.org/oq-engine/advanced/risk-features.html#correlation
When working with a large number of sites, the following error can appear:
We can improve the error message. For instance: