-
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: SDSS-V SpectrumList format ambiguity, mwmVisit BOSS load fail (#…
…1185) * fix: mwmVisit BOSS HDU default loader fail - no longer checks for "date_obs"; calculate that yourself - also adds "sdss_id" to metadata now * fix: SDSS-V SpectrumList loader ambiguity + add: BOSS-only mwm test cases - added new test cases for BOSS-only mwmVisit and mwmStar files - added new checks to SpectrumList mwmVisit/mwmStar test to check verified filetype is correct - forced override on default SpectrumList loaders -- now SpectrumList is no longer ambiguous and doesn't require a format specification - relevant areas in tests are updated accordingly - added print warnings to when HDU is not specified on Spectrum1D loaders for files with multiple spectra. - ensured tests now remove tempfiles with os.remove - arguably, this could work better with tmpfile, but i don't know how tests are deployed on the server-side * add: changelog -> CHANGES.rst - three points outlining changes listed in PR as per #1185 * fix: HDU unspecified print message Co-authored-by: Brian Cherinka <havok2063@hotmail.com> * feat: condense loaders into only SpectrumList of 1D flux - all loaders now only load for a single datatype, avoiding prior knowledge of SDSS datatypes - updated to only load as SpectrumList - updated to load all visits in mwmVisit files as individual Spectrum1D objects in the SpectrumList - relevant tests removed - relevant import __all__ adjusted * chore: changelog update - describes changes shown previously * revert: readd all Spectrum1D loaders and tests revert back to 4bee136 * feat: visit specification on mwmVisit load - readded print -> warnings conversion - can specify the visit to load on mwmVisit load. - added relevant tests for the new mwmVisit case * revert: completely rollback to initial case - no longer unpacks nD spectrum in all cases for mwm - will still unpack flux from 2D to 1D in the event its single visit or coadd * fix: test cases - fixed flux array length check so that the 2D mwm visits are checked properly * fix: split test cases for user warning + remove useless warning - removed HDU is empty warning on mwm SpecList, not really worth a warning - moved test cases which are designed to throw exceptions into their own test function --------- Co-authored-by: Brian Cherinka <havok2063@hotmail.com>
- Loading branch information
Showing
3 changed files
with
176 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.