Esempio n. 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)
Esempio n. 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)
Esempio n. 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)