Skip to content

Commit

Permalink
Removed an annoying numpy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
micheles committed Sep 25, 2023
1 parent d4775e8 commit b5a31a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openquake/hazardlib/geo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def assoc2(self, exp, assoc_dist, region, mode):
raise RuntimeError(
'Could not find any asset within the region!')
mesh = geo.Mesh(mesh.lons[ok], mesh.lats[ok], mesh.depths[ok])
assets_by_site = numpy.array(assets_by_site)[ok]
assets_by_site = numpy.array(assets_by_site, dtype=object)[ok]
logging.info('Discarded %d assets outside the region',
len(out))
asset_dt = numpy.dtype(
Expand Down

0 comments on commit b5a31a6

Please sign in to comment.