Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unused dqflag functions #409

Merged
merged 2 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.