예제 #1
0
 def test_qt(self):
     df1 = pd.DataFrame({"qc": [0.0, 1, 2], "u2": [0, 1, 1]})
     v = geo.qt(df1, area_quotient_cone_tip=0.5)
     df = pd.DataFrame({
         "qc": [0.0, 1, 2],
         "u2": [0, 1, 1],
         "qt": [0.0, 1.5, 2.5]
     })
     assert_frame_equal(v, df)
예제 #2
0
파일: tests.py 프로젝트: ritchie46/pygef
 def test_qt(self):
     df1 = pl.DataFrame({"qc": [0.0, 1.0, 2.0], "u2": [0.0, 1.0, 1.0]})
     v = geo.qt(df1, area_quotient_cone_tip=0.5)
     df = pl.DataFrame({
         "qc": [0.0, 1.0, 2.0],
         "u2": [0.0, 1.0, 1.0],
         "qt": [0.0, 1.5, 2.5]
     })
     assert v.frame_equal(df, null_equal=True)