diff --git a/toasty/fits_tiler.py b/toasty/fits_tiler.py index e73d08c..5251ae9 100644 --- a/toasty/fits_tiler.py +++ b/toasty/fits_tiler.py @@ -74,11 +74,12 @@ class FitsTiler(object): self.coll = coll self.out_dir = out_dir self.tiling_method = tiling_method - if ( - self.tiling_method == TilingMethod.AUTO_DETECT - and self._fits_covers_large_area() - ): - self.tiling_method == TilingMethod.TOAST + + if self.tiling_method == TilingMethod.AUTO_DETECT: + if self._fits_covers_large_area(): + self.tiling_method = TilingMethod.TOAST + else: + self.tiling_method = TilingMethod.TAN def tile( self,