Exemple #1
0
    def test_realexample_reading(self):
        """
        Test reading a real file from dov.vlaanderen.be
        """
        filename = os.path.join(TESTS_DATA_DIR, 'gef_real_example.gef')
        self.gef_cpt = pcpt_processing.PCPTProcessing(title="GEF real")

        self.gef_cpt.load_gef(path=filename)
        self.assertEqual(self.gef_cpt.data.loc[2, "qc [MPa]"], 1.1)
        self.assertEqual(self.gef_cpt.data["z [m]"].iloc[-1], 7.4)
        self.assertEqual(self.gef_cpt.title, 'GEO-52/1143-S3')
Exemple #2
0
    def test_shortfile_reading(self):
        """
        Test reading the short file from the CUR guide
        """
        filename = os.path.join(TESTS_DATA_DIR, 'gef_file_short.gef')
        self.gef_cpt = pcpt_processing.PCPTProcessing(title="GEF short")

        self.gef_cpt.load_gef(path=filename, inverse_depths=True)
        self.assertEqual(self.gef_cpt.data.loc[1, "qc [MPa]"], 0.205)
        self.assertEqual(self.gef_cpt.data["z [m]"].iloc[-1], 25.08)
        self.assertEqual(self.gef_cpt.title, 'C2-265')
Exemple #3
0
    def test_longfile_reading(self):
        """
        Test reading the long file from the CUR guide
        """
        filename = os.path.join(TESTS_DATA_DIR, 'gef_file_long.gef')
        self.gef_cpt = pcpt_processing.PCPTProcessing(title="GEF long")

        self.gef_cpt.load_gef(path=filename, inverse_depths=True)
        self.assertEqual(self.gef_cpt.data.loc[1, "qc [MPa]"], 0.382)
        self.assertEqual(self.gef_cpt.data["z [m]"].iloc[-1], 57.64)
        self.assertEqual(self.gef_cpt.easting, 12.345)
        self.assertEqual(self.gef_cpt.elevation, 40.03)
        self.assertEqual(self.gef_cpt.title, 'C2-366')
Exemple #4
0
 def test_loadags(self):
     ags_pcpt = pcpt_processing.PCPTProcessing(title="AGS PCPT")
     ags_pcpt.load_ags(
         os.path.join(TESTS_DATA_DIR, 'N6016_BH_WFS1-2A_AGS4_150909.ags'),
         z_key="Depth [m]",
         qc_key="qc [MN/m2]",
         fs_key="fs [kN/m2]",
         u2_key="u2 [kN/m2]",
         push_key="Test reference or push number",
         fs_multiplier=0.001, u2_multiplier=0.001,
         verbose_keys=True, use_shorthands=True
     )
     self.assertEqual(ags_pcpt.data['z [m]'].iloc[0], 0)
     self.assertEqual(ags_pcpt.data['z [m]'].iloc[1], 10)
     self.assertEqual(ags_pcpt.data['qc [MPa]'].iloc[1], 2.955)
Exemple #5
0
 def setUp(self):
     self.data = pd.read_excel(os.path.join(TESTS_DATA_DIR, 'debeer_example.xlsx'))
     self.data["u2 [MPa]"] = 1e-3 * self.data["u [kPa]"]
     self.pandas_pcpt = pcpt_processing.PCPTProcessing(title="Pandas PCPT")