Beispiel #1
0
 def test_soil_pressure(self):
     v = pl.DataFrame({
         "gamma": [0.0, 0.5, 1.0],
         "delta_depth": [0.0, 0.5, 0.5]
     })
     geo.soil_pressure(v)
     df = pl.DataFrame({
         "gamma": [0.0, 0.5, 1.0],
         "delta_depth": [0.0, 0.5, 0.5],
         "soil_pressure": [0.0, 0.25, 0.75],
     })
     assert v.frame_equal(df, null_equal=True)
Beispiel #2
0
 def test_soil_pressure(self):
     df1 = pd.DataFrame({
         "gamma": [0, 0.5, 1],
         "delta_depth": [0, 0.5, 0.5]
     })
     v = geo.soil_pressure(df1)
     df = pd.DataFrame({
         "gamma": [0, 0.5, 1],
         "delta_depth": [0, 0.5, 0.5],
         "soil_pressure": [0.0, 0.25, 0.75],
     })
     assert_frame_equal(v, df)
Beispiel #3
0
 def test_soil_pressure(self):
     df1 = pd.DataFrame({
         'gamma': [0, 0.5, 1],
         'delta_depth': [0, 0.5, 0.5]
     })
     v = geo.soil_pressure(df1)
     df = pd.DataFrame({
         'gamma': [0, 0.5, 1],
         'delta_depth': [0, 0.5, 0.5],
         'soil_pressure': [0.0, 0.25, 0.75]
     })
     assert_frame_equal(v, df)