Exemplo n.º 1
0
    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
Exemplo n.º 2
0
    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
Exemplo n.º 3
0
def dx4resample(name, factor):
    """Comments"""
    gddx = Grid()
    gddx.load(name)
    gddx.resample_factor(factor)
    gddx.export(name, file_format='dx')