The following error occurs when trying to create a complex fault surface crossing the international date line:
Traceback (most recent call last):
File "/Users/damianomonelli/Projects/oq-hazardlib/tests/geo/surface/complex_fault_test.py", line 122, in test_surface_crossing_international_date_line
mesh_spacing=10.)
File "/Users/damianomonelli/Projects/oq-hazardlib/openquake/hazardlib/geo/surface/complex_fault.py", line 162, in from_fault_data
return cls(mesh)
File "/Users/damianomonelli/Projects/oq-hazardlib/openquake/hazardlib/geo/surface/complex_fault.py", line 52, in __init__
self.get_mesh()._get_proj_enclosing_polygon()[1],
File "/Users/damianomonelli/Projects/oq-hazardlib/openquake/hazardlib/geo/mesh.py", line 429, in _get_proj_enclosing_polygon
*geo_utils.get_spherical_bounding_box(self.lons, self.lats)
File "/Users/damianomonelli/Projects/oq-hazardlib/openquake/hazardlib/geo/utils.py", line 119, in get_spherical_bounding_box
west = min(lon for lon in lons if lon > 0)
File "/Users/damianomonelli/Projects/oq-hazardlib/openquake/hazardlib/geo/utils.py", line 119, in <genexpr>
west = min(lon for lon in lons if lon > 0)
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Solved by pull request https:/ /github. com/gem/ oq-hazardlib/ pull/118.