Ejemplo n.º 1
0
    def test_run(self):

        # intialize ueb
        mdl = '../ueb.mdl'
        config_params = parse_config(mdl)
        UEB = ueb.ueb(config_params)

        # run
        UEB.run(None)

        # finish
        UEB.save()

        print 'done'
Ejemplo n.º 2
0
    def test_run(self):

        # intialize ueb
        mdl = '../ueb.mdl'
        config_params = parse_config(mdl)
        UEB = ueb.ueb(config_params)

        # run
        UEB.run(None)

        # finish
        UEB.save()

        print 'done'
Ejemplo n.º 3
0
    def test_geometry_creation_and_ordering(self):

        # intialize ueb
        mdl = '../ueb.mdl'
        config_params = parse_config(mdl)
        UEB = ueb.ueb(config_params)

        # get the active cells (these are looped through in run)
        cells = UEB.activeCells

        # build geometries
        xdim = UEB.C_dimlen1.value
        ydim = UEB.C_dimlen2.value
        geoms = UEB.build_geometries(range(xdim), range(ydim))

        # create point tuples from geoms
        pts = [ (int(g.GetX()), int(g.GetY())) for g in geoms]

        # make sure the ordering is correct
        self.assertTrue(cells == pts)
Ejemplo n.º 4
0
    def test_geometry_creation_and_ordering(self):

        # intialize ueb
        mdl = '../ueb.mdl'
        config_params = parse_config(mdl)
        UEB = ueb.ueb(config_params)

        # get the active cells (these are looped through in run)
        cells = UEB.activeCells

        # build geometries
        xdim = UEB.C_dimlen1.value
        ydim = UEB.C_dimlen2.value
        geoms = UEB.build_geometries(range(xdim), range(ydim))

        # create point tuples from geoms
        pts = [(int(g.GetX()), int(g.GetY())) for g in geoms]

        # make sure the ordering is correct
        self.assertTrue(cells == pts)