Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add extraterrestrial and direct spectra of ASTM G173-03 standard spec…
…trum (AM1.5) (#2039) * Implement all for spectrum.get_ASTM_G173 * Full implementation Implement, test and document spectrum.get_ASTM_G173 Modify spectrum.get_am15g as a wrapper of the latter Delete old file Implementation note: I've used pandas interpolate instead of scipy's because the latter is considered legacy. See docs at https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.interp1d.html * Minor updates to docs * Add print statements to examples * Add example from my other branch * Microoptimization 🚀 * Fix implementation * Format with Ruff, thx Ruff 💚 * Update v0.11.0.rst * Change signature to `get_standard_spectrum`, future-proof implementation * linter 🌋 * Update plot_standard_ASTM_G173-03.py Co-Authored-By: Kevin Anderson <[email protected]> * Update mismatch.py Co-Authored-By: Kevin Anderson <[email protected]> * Update mismatch.py Co-Authored-By: Kevin Anderson <[email protected]> * reference->standard & docs Co-Authored-By: Kevin Anderson <[email protected]> * docs Co-Authored-By: Kevin Anderson <[email protected]> * Fixes Co-Authored-By: Kevin Anderson <[email protected]> * Fix tests, I'm kinda stupid * Deprecation announcement in condition * duh * Update mismatch.py * Add fail on version * Units * Unit formatting, forgot this * Remove deprecated admonition duplicate Co-Authored-By: Kevin Anderson <[email protected]> * Unit formatting went too far Co-Authored-By: Kevin Anderson <[email protected]> * Function rename to get_reference_spectrum Co-Authored-By: Kevin Anderson <[email protected]> * Clean warnings from test logs Co-Authored-By: Kevin Anderson <[email protected]> * Fix wrongly made test https: //stackoverflow.com/questions/65255622/anydf-isna-returns-true-when-no-nans-are-present Co-Authored-By: Kevin Anderson <[email protected]> * Other get_am15g references in code Co-Authored-By: Kevin Anderson <[email protected]> * Update plot_standard_ASTM_G173-03.py Co-Authored-By: Kevin Anderson <[email protected]> * lintar * Order of commits matter Co-Authored-By: Kevin Anderson <[email protected]> * Rm units of function not in scope Co-Authored-By: Kevin Anderson <[email protected]> * Rename function to get_reference_spectra Co-Authored-By: Kevin Anderson <[email protected]> Co-Authored-By: Mark Campanelli <[email protected]> * Code Review from Kevin Co-Authored-By: Kevin Anderson <[email protected]> * linter :D Co-Authored-By: Kevin Anderson <[email protected]> * Remove stupid keyword-only params requirement Co-Authored-By: Mark Campanelli <[email protected]> --------- Co-authored-by: Kevin Anderson <[email protected]> Co-authored-by: Mark Campanelli <[email protected]>
- Loading branch information