Skip to content
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.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
1.2.1 (Unreleased)
==================

- Fix crash for background observations in ``get_short_band_name``
- For background association, strip whitespace and lowercase for more robust matching
- Imports update - now supports numpy>2.0!
- Keep track of expected stripe direction in ``multi_tile_destripe_step``
Expand Down
3 changes: 2 additions & 1 deletion pjpipe/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,15 @@ def get_band_ext(band):

return band_ext


def get_short_band_name(band):
"""Get a stripped down short name for a band"""

band_short = copy.deepcopy(band)

# Strip background
if "_bgr" in band_short:
band_short = band_short.replace("_bgr")
band_short = band_short.replace("_bgr", "")

# Strip instrument names
if "_niriss" in band_short:
Expand Down