Error when creating a complex fault surface crossing international date line

Bug #1176066 reported by Damiano Monelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake Hazard Library
Fix Released
High
Damiano Monelli

Bug Description

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()

Changed in oq-hazardlib:
importance: Undecided → High
assignee: nobody → Damiano Monelli (monelli)
Revision history for this message
Lars Butler (lars-butler) wrote :
Revision history for this message
Lars Butler (lars-butler) wrote :

FYI, this bug appeared as a result of the patches added with bug # 1175545.

Changed in oq-hazardlib:
status: New → Fix Committed
Changed in oq-hazardlib:
milestone: none → 0.12
Changed in oq-hazardlib:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.