def fixture_data_fractures_compilation(): """ Load the sample fractures compilation dataset which contains fracture lengths and azimuths as hypothetically digitized from geological maps. Lengths are stored in the first column, azimuths in the second. """ return load_fractures_compilation()
def test_fractures_compilation(): """ Check that the @fractures_06.txt dataset loads without errors. """ data = load_fractures_compilation() assert data.shape == (361, 2) summary = data.describe() assert summary.loc["min", "length"] == 98.6561 assert summary.loc["max", "length"] == 984.652 assert summary.loc["min", "azimuth"] == 0.0 assert summary.loc["max", "azimuth"] == 360.0
def test_fractures_compilation(): """ Check that the @fractures_06.txt dataset loads without errors. """ with pytest.warns(expected_warning=FutureWarning) as record: data = load_fractures_compilation() assert len(record) == 1 assert data.shape == (361, 2) summary = data.describe() assert summary.loc["min", "length"] == 98.6561 assert summary.loc["max", "length"] == 984.652 assert summary.loc["min", "azimuth"] == 0.0 assert summary.loc["max", "azimuth"] == 360.0
def fixture_data_fractures_compilation(): """ Load the sample fractures compilation dataset. """ return load_fractures_compilation()