def test_simple_delayed_write(self): from dask.delayed import Delayed from satpy.writers.simple_image import PillowWriter datasets = self._get_test_datasets() w = PillowWriter(base_dir=self.base_dir) res = w.save_datasets(datasets, compute=False) self.assertIsInstance(res, Delayed) res.compute()
def test_simple_delayed_write(self): from dask.delayed import Delayed from satpy.writers.simple_image import PillowWriter from satpy.writers import compute_writer_results datasets = self._get_test_datasets() w = PillowWriter(base_dir=self.base_dir) res = w.save_datasets(datasets, compute=False) for r__ in res: self.assertIsInstance(r__, Delayed) r__.compute() compute_writer_results(res)
def test_simple_write(self): from satpy.writers.simple_image import PillowWriter datasets = self._get_test_datasets() w = PillowWriter(base_dir=self.base_dir) w.save_datasets(datasets)
def test_simple_write(self): """Test writing datasets with default behavior.""" from satpy.writers.simple_image import PillowWriter datasets = self._get_test_datasets() w = PillowWriter(base_dir=self.base_dir) w.save_datasets(datasets)
def test_init(self): """Test creating the default writer.""" from satpy.writers.simple_image import PillowWriter PillowWriter()
def test_init(self): from satpy.writers.simple_image import PillowWriter w = PillowWriter()