def test_load_pickle(self, data, tmpdir): g = data['grid'] fn = str(tmpdir.mkdir('grid').join('grid.pkl')) g.save(fn) h = Grid() h.load(fn) assert h == g
def test_pickle(self, data, tmpdir): g = data['grid'] fn = str(tmpdir.mkdir('grid').join('grid.pkl')) g.save(fn) h = Grid() h.load(fn, file_format="pickle") assert h == g
def dx4resample(name, factor): """Comments""" gddx = Grid() gddx.load(name) gddx.resample_factor(factor) gddx.export(name, file_format='dx')