Skip to content

Commit 6376781

Browse files
authored
Merge pull request #886 from mwcraig/use-astropy-bitfield
Use astropy's bitmask instead of bundling a copy
2 parents c943dfc + aca218e commit 6376781

File tree

4 files changed

+4
-452
lines changed

4 files changed

+4
-452
lines changed

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Other Changes and Additions
1111
- Elements of the data array in a flat image that are masked are set to 1
1212
instead of 0.
1313
- Removed unused ``ccdproc.test()``. Use ``pytest --pyargs ccdproc`` instead. [#880]
14+
- Removed bundled copy of bitfield handling and use the one from astropy. [#886]
1415

1516
Bug Fixes
1617
^^^^^^^^^

ccdproc/core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@
1212
from astropy import units as u
1313
from astropy.modeling import fitting
1414
from astropy.nddata import CCDData, StdDevUncertainty
15+
from astropy.nddata.bitmask import (
16+
bitfield_to_boolean_mask as _bitfield_to_boolean_mask,
17+
)
1518
from astropy.units.quantity import Quantity
1619
from astropy.utils import deprecated, deprecated_renamed_argument
1720
from astropy.wcs.utils import proj_plane_pixel_area
1821
from packaging import version as pkgversion
1922
from scipy import ndimage
2023

21-
from .extern.bitfield import bitfield_to_boolean_mask as _bitfield_to_boolean_mask
2224
from .log_meta import log_to_metadata
2325
from .utils.slices import slice_from_string
2426

ccdproc/extern/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)