Skip to content

Commit

Permalink
Fixed code style
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Feb 17, 2023
1 parent 4556b49 commit 0ca6357
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions astropy/io/fits/hdu/compressed.py
Expand Up @@ -11,7 +11,6 @@

import numpy as np

from astropy.utils.exceptions import AstropyDeprecationWarning
from astropy.io.fits import conf
from astropy.io.fits._tiled_compression import compress_hdu, decompress_hdu
from astropy.io.fits.card import Card
Expand All @@ -26,7 +25,7 @@
_pseudo_zero,
)
from astropy.utils import lazyproperty
from astropy.utils.exceptions import AstropyUserWarning
from astropy.utils.exceptions import AstropyDeprecationWarning, AstropyUserWarning

from .base import BITPIX2DTYPE, DELAYED, DTYPE2BITPIX, ExtensionHDU
from .image import ImageHDU
Expand Down Expand Up @@ -1129,12 +1128,15 @@ def _update_header_data(
)

if tile_size != original_tile_size:
warnings.warn(f"The tile size should be such that no tiles have "
f"fewer than 4 pixels. The tile size has "
f"automatically been changed from {original_tile_size} "
f"to {tile_size}, but in future this will raise an "
f"error and the correct tile size should be specified "
f"directly.", AstropyDeprecationWarning)
warnings.warn(
f"The tile size should be such that no tiles have "
f"fewer than 4 pixels. The tile size has "
f"automatically been changed from {original_tile_size} "
f"to {tile_size}, but in future this will raise an "
f"error and the correct tile size should be specified "
f"directly.",
AstropyDeprecationWarning,
)

# Set up locations for writing the next cards in the header.
last_znaxis = "ZNAXIS"
Expand Down

0 comments on commit 0ca6357

Please sign in to comment.