Пример #1
0
 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()
Пример #2
0
 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()
Пример #3
0
 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)
Пример #4
0
 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)
Пример #5
0
 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)
Пример #6
0
 def test_init(self):
     """Test creating the default writer."""
     from satpy.writers.simple_image import PillowWriter
     PillowWriter()
Пример #7
0
 def test_init(self):
     from satpy.writers.simple_image import PillowWriter
     w = PillowWriter()
Пример #8
0
 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)