Example #1
0
 def test_as_ModelGrid(self):
     grid = core.makeGrid(
         self.ny, self.nx,
         domain=self.domain,
         rawgrid=False,
         **self.gridparams
     )
     nt.assert_true(isinstance(grid, core.ModelGrid))
Example #2
0
 def test_with_and_bathy(self):
     grid = core.makeGrid(
         self.ny, self.nx,
         domain=self.domain,
         bathydata=self.bathy.dropna(),
         **self.gridparams
     )
     nt.assert_true(isinstance(grid, pygridgen.Gridgen))
Example #3
0
 def test_with_bathy_verbose(self):
     params = self.gridparams.copy()
     params['verbose'] = True
     grid = core.makeGrid(
         self.ny, self.nx,
         domain=self.domain,
         bathydata=self.bathy.dropna(),
         **self.gridparams
     )
     nt.assert_true(isinstance(grid, pygridgen.Gridgen))