Skip to content

Commit

Permalink
GHOSTSpect: require exactly 4 extensions for validateData()
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-simpson committed May 20, 2024
1 parent 52a7441 commit b3c4781
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/DRAGONS/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ Improvements

* Improved speed and success rate of wavelength calibration.

Bug fixes
---------
**geminidr.ghost**

* Cause data validation to fail for echellograms without exactly 4 extensions.


3.2.0
=====
Expand Down
4 changes: 4 additions & 0 deletions geminidr/ghost/primitives_ghost_spect.py
Original file line number Diff line number Diff line change
Expand Up @@ -2361,6 +2361,10 @@ def write1DSpectra(self, adinputs=None, **params):
Spect.write1DSpectra(self, adinputs, **params)
return adinputs

@staticmethod
def _has_valid_extensions(ad):
return len(ad) == 4


##############################################################################
# Below are the helper functions for the user level functions in this module #
Expand Down

0 comments on commit b3c4781

Please sign in to comment.