def fixture_testwells(testpath): w_names = [ "WELL29", "WELL14", "WELL30", "WELL27", "WELL23", "WELL32", "WELL22", "WELL35", "WELLX", ] well_files = [ join(testpath, "wells", "battle", "1", wn + ".rmswell") for wn in w_names ] return Wells(well_files, fformat="rms_ascii")
def test_wellintersections_tvdrange_wfilter(loadwells1): """Find well crossing using coarser sampling to Fence, with wfilter settings. """ wfilter = { "parallel": {"xtol": 4.0, "ytol": 4.0, "ztol": 2.0, "itol": 10, "atol": 5.0} } mywell_list = loadwells1 mywells = Wells() mywells.wells = mywell_list print("Limit TVD and downsample...") mywells.limit_tvd(1300, 1400) mywells.downsample(interval=6) print("Limit TVD and downsample...DONE") dfr = mywells.wellintersections(wfilter=wfilter) dfr.to_csv(ojoin(td, "wells_crossings_filter.csv")) print(dfr)
def test_wells_setter_same_names(testwells): wells2 = Wells() wells2.wells = testwells.wells assert wells2.names == testwells.names
def test_wells_non_well_setter_errors(): with pytest.raises(ValueError, match="not valid Well"): Wells().wells = [None]
def test_wells_empty_is_none(): assert Wells().wells is None