Skip to content

Commit 3dab338

Browse files
small corrections
1 parent 9287217 commit 3dab338

File tree

6 files changed

+169
-160
lines changed

6 files changed

+169
-160
lines changed

geos-geomechanics/src/geos/geomechanics/model/MohrCircle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def setPrincipalComponents( self: Self, p3: float, p2: float, p1: float ) -> Non
123123
Raises:
124124
ValueError: Expected p3 <= p2 <= p1.
125125
"""
126-
if ( p3 <= p2 ) and ( p2 <= p1 ):
126+
if not ( ( p3 <= p2 ) and ( p2 <= p1 ) ):
127127
raise ValueError( "Component order is wrong. Expected p3 <= p2 <= p1." )
128128
self.p3 = p3
129129
self.p2 = p2

0 commit comments

Comments
 (0)