def _get_style_of_faulting_term(self, C, rup):
        """
        Get fault type dummy variables
        Fault type (Strike-slip, Normal, Thrust/reverse) is
        derived from rake angle.
        Rakes angles within 30 of horizontal are strike-slip,
        angles from 30 to 150 are reverse, and angles from
        -30 to -150 are normal.
        Note that the 'Unspecified' case is not considered here as
        rake is always given.
        """
        if np.abs(rup.rake) <= 30.0 or (180.0 - np.abs(rup.rake)) <= 30.0:
            # strike-slip
            return C["e1"]
        elif rup.rake > 30.0 and rup.rake < 150.0:
            # reverse
            return C["e3"]
        else:
            # normal
            return C["e2"]
def _get_style_of_faulting_term ( self , C , rup ) : if np . abs ( rup . rake ) <= 30.0 or ( 180.0 - np . abs ( rup . rake ) ) <= 30.0 : return C [ "e1" ] elif rup . rake > 30.0 and rup . rake < 150.0 : return C [ "e3" ] else : return C [ "e2" ]
Get fault type dummy variables
        Fault type (Strike-slip, Normal, Thrust/reverse) is
        derived from rake angle.
        Rakes angles within 30 of horizontal are strike-slip,
        angles from 30 to 150 are reverse, and angles from
        -30 to -150 are normal.
        Note that the 'Unspecified' case is not considered here as
        rake is always given.