GEMScienceTools / oq-mbtk

OpenQuake Model Building Toolkit, a suite of tools for building components and analysing models for PSHA.
https://gemsciencetools.github.io/oq-mbtk/index.html
GNU Affero General Public License v3.0
14 stars 8 forks source link

fixing tests that broke cause of line.points property in hazlib #359

Closed kejohnso closed 10 months ago

kejohnso commented 10 months ago

After line.points was turned into a property, the check for compliance with the right hand rule in the fault modeller broke because the points list became immutable. This PR fixes resolves that using .flip(). Also removed a false assumption that certain slip types would have vertical faults - now all non-vertical faults must comply with the RHR.