You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The South America model fails: https://gitlab.openquake.org/hazard/mosaic/SAM/-/jobs/16426.
The reason is that the engine computes a WKT string for the seismic sources; such string is used in the oq plot sources command. For nonparametric sources the WKT is obtained from this formula which is ultra-slow:
defwkt(self):
""" :returns: the geometry as a WKT string """polys= [rup.surface.mesh.get_convex_hull()._polygon2dforrup, pmfinself.data]
returnshapely.geometry.MultiPolygon(polys).wkt
This is a bad idea, we are generating one polygon for each rupture in the source, and then even the realization is ultra-slow. We need a decent formula from @mmpagani . For the moment I am just producing the WKT of the convex hull (see #5652).
NB: in the past the SAM model did not fail but only by accident (the .wkt() calls were made in parallel and not sequentially as now). It was still impossible to visualize the sources, so the problem of the wrong formula was still there (BTW, I am responsible for the formula since I had no idea of what to put there).
The text was updated successfully, but these errors were encountered:
The South America model fails: https://gitlab.openquake.org/hazard/mosaic/SAM/-/jobs/16426.
The reason is that the engine computes a WKT string for the seismic sources; such string is used in the
oq plot sources
command. For nonparametric sources the WKT is obtained from this formula which is ultra-slow:This is a bad idea, we are generating one polygon for each rupture in the source, and then even the realization is ultra-slow. We need a decent formula from @mmpagani . For the moment I am just producing the WKT of the convex hull (see #5652).
NB: in the past the SAM model did not fail but only by accident (the .wkt() calls were made in parallel and not sequentially as now). It was still impossible to visualize the sources, so the problem of the wrong formula was still there (BTW, I am responsible for the formula since I had no idea of what to put there).
The text was updated successfully, but these errors were encountered: