Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_local(self):
cube = new_cube(time_periods=10, time_start='2019-01-01',
variables=dict(precipitation=0.1,
temperature=270.5,
soil_moisture=0.2))
cube = chunk_dataset(cube, dict(time=1, lat=90, lon=90), format_name='zarr')
cube.to_zarr(self.CUBE_PATH)
cube.close()
diagnostic_store = DiagnosticStore(zarr.DirectoryStore(self.CUBE_PATH),
logging_observer(log_path='local-cube.log'))
xr.open_zarr(diagnostic_store)
def test_local(self):
cube = new_cube(time_periods=10, time_start='2019-01-01',
variables=dict(precipitation=0.1,
temperature=270.5,
soil_moisture=0.2))
cube = chunk_dataset(cube, dict(time=1, lat=90, lon=90), format_name='zarr')
cube.to_zarr(self.CUBE_PATH)
cube.close()
diagnostic_store = DiagnosticStore(zarr.DirectoryStore(self.CUBE_PATH),
logging_observer(log_path='local-cube.log'))
xr.open_zarr(diagnostic_store)