Skip to content

Commit

Permalink
remove unused dqflag functions (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram authored Feb 24, 2025
1 parent 0d6c26d commit deb4b67
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 199 deletions.
1 change: 1 addition & 0 deletions changes/409.removal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove unused dqflags and basic_utils submodules.
43 changes: 0 additions & 43 deletions src/stdatamodels/basic_utils.py

This file was deleted.

104 changes: 0 additions & 104 deletions src/stdatamodels/dqflags.py

This file was deleted.

9 changes: 0 additions & 9 deletions src/stdatamodels/jwst/datamodels/dqflags.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
the formula `2**bit_number` where `bit_number` is the 0-index bit of interest.
"""

# These imports are here for backwards compatibility
from astropy.nddata.bitmask import interpret_bit_flags as ap_interpret_bit_flags
from stdatamodels.dqflags import interpret_bit_flags, dqflags_to_mnemonics
from stdatamodels.basic_utils import multiple_replace

# Pixel-specific flags
pixel = {
"GOOD": 0, # No bits set, all is good
Expand Down Expand Up @@ -73,10 +68,6 @@
}

__all__ = [
"ap_interpret_bit_flags",
"interpret_bit_flags",
"dqflags_to_mnemonics",
"multiple_replace",
"pixel",
"group",
]
43 changes: 0 additions & 43 deletions tests/test_dq.py

This file was deleted.

0 comments on commit deb4b67

Please sign in to comment.