def setUp(self): """setup""" # abspath = os.path.abspath(__file__) # dname = os.path.dirname(abspath) # dname = os.path.dirname(dname) # pth = os.path.join(dname, # 'example_control_files','Control_barrow.yaml' # ) self.control = control.Control(config_ex)
def setUp(self): """setup class for tests """ config = config_ex config.update({ 'grid_shape': (10, 10), 'model length': 100, }) config['AOI mask'] = \ np.ones(config['grid_shape']) == np.ones(config['grid_shape']) config = control.Control(config) self.ice = ice_grid.IceGrid(config)
def setUp(self): """setup class for tests """ config = config_ex config.update({ 'grid_shape': (10, 10), 'model length': 100, }) config['AOI mask'] = \ np.ones(config['grid_shape']) == np.ones(config['grid_shape']) config['Control_dir'] = './' config = control.Control(config) self.drainage = drainage_grid.DrainageGrid(config)
def setUp(self): """setup class for tests """ cfg = config_ex cfg.update({ 'grid_shape': (10, 10), 'model length': 100, }) cfg['AOI mask'] = \ np.ones(cfg['grid_shape']) == np.ones(cfg['grid_shape']) cfg['mask'] = None cfg['init ice'] = ice_grid.ICE_TYPES[:1] cfg['Control_dir'] = './' cfg = control.Control(cfg) self.ice = ice_grid.IceGrid(cfg)
def setUp(self): """setup class for tests """ config = config_ex config.update({ 'grid_shape': (10,10), 'model length': 100, 'grid_shape' : (10,10), 'pond depth range' : (.3,.3), 'lake depth range' : (.3, 5), 'ice depth alpha range': (2.31, 2.55), }) config['AOI mask'] = \ np.ones(config['grid_shape']) == np.ones(config['grid_shape']) config = control.Control(config) self.lake_pond = lake_pond_grid.LakePondGrid(config)