@@ -75,7 +75,7 @@ def test_MohrCoulombInit( self: Self ) -> None:
7575 def test_computeShearStress ( self : Self ) -> None :
7676 """Test calculation of shear stress from normal stress."""
7777 # inputs
78- stressNormal : npt .NDArray [ np .float64 ] = np .linspace ( 5.0e8 , 1.0e9 , 100 )
78+ stressNormal : npt .NDArray [ np .float64 ] = np .linspace ( 5.0e8 , 1.0e9 , 100 ). astype ( float )
7979 # expected values
8080 expectedValues : npt .NDArray [ np .float64 ] = np .array ( [
8181 888163490.0 ,
@@ -184,7 +184,7 @@ def test_computeShearStress( self: Self ) -> None:
184184 obtained : npt .NDArray [ np .float64 ] = np .array ( mohrCoulomb .computeShearStress ( stressNormal ) )
185185
186186 # test results
187- self .assertSequenceEqual ( expectedValues .tolist (), np .round ( obtained ).tolist () )
187+ self .assertSequenceEqual ( expectedValues .tolist (), np .round ( obtained ).tolist () ) # type: ignore[arg-type]
188188
189189 def test_computeFailureEnvelop1 ( self : Self ) -> None :
190190 """Test calculation of failure envelop from minimum normal stress."""
@@ -221,8 +221,12 @@ def test_computeFailureEnvelop1( self: Self ) -> None:
221221 normalStressObtained , shearStressObtained = mohrCoulomb .computeFailureEnvelop ( stressNormalMax , n = 10 )
222222
223223 # test results
224- self .assertSequenceEqual ( normalStressExpected .tolist (), np .round ( normalStressObtained ).tolist () )
225- self .assertSequenceEqual ( shearStressExpected .tolist (), np .round ( shearStressObtained ).tolist () )
224+ self .assertSequenceEqual (
225+ normalStressExpected .tolist (), # type: ignore[arg-type]
226+ np .round ( normalStressObtained ).tolist () )
227+ self .assertSequenceEqual (
228+ shearStressExpected .tolist (), # type: ignore[arg-type]
229+ np .round ( shearStressObtained ).tolist () )
226230
227231 def test_computeFailureEnvelop2 ( self : Self ) -> None :
228232 """Test calculation of failure envelop in user-defined range."""
@@ -262,5 +266,9 @@ def test_computeFailureEnvelop2( self: Self ) -> None:
262266 n = 10 )
263267
264268 # test results
265- self .assertSequenceEqual ( normalStressExpected .tolist (), np .round ( normalStressObtained ).tolist () )
266- self .assertSequenceEqual ( shearStressExpected .tolist (), np .round ( shearStressObtained ).tolist () )
269+ self .assertSequenceEqual (
270+ normalStressExpected .tolist (), # type: ignore[arg-type]
271+ np .round ( normalStressObtained ).tolist () )
272+ self .assertSequenceEqual (
273+ shearStressExpected .tolist (), # type: ignore[arg-type]
274+ np .round ( shearStressObtained ).tolist () )
0 commit comments