Skip to content

v0.2.0

Choose a tag to compare

@bcaddy bcaddy released this 08 Apr 19:27
· 145 commits to main since this release
b904c68

Add support for loading spectra files.

Added the PegasusSpectralData class to load data from spectra files. Also added documentation and tests for PegasusSpectralData.

Performance gain. Used a 3.44GB spec file

Della MacBook (M3 Max, 2TB SSD)
Previous 28MB/s 52MB/s
New 1.14GB/s 7.9GB/s
Speedup 41x 152x

Refactor system for loading NBF files

This change primarily removes load_file and integrates _load_nbf and the functions it calls into the constructor for PegasusNBFData. This was done because implementing load_file as a wrapper over all different loading functions was becoming too complex and was generally unneccarsy and confusing with minimal upside. Integrating _load_nbf into the constructor of PegasusNBFData was done because its purpose was to construct a PegasusNBFData object so it should be the constructor. Now NBF files can be read by just instantiating a PegasusNBFData object.

Additionally:

  • integrate nbf_testing_utilities.py into test_loading_nbf.py
  • Update NBF tests for new version of PegasusNBFData
  • Update documentation for loading NBF files to remove load_file and replace it with PegasusNBFData

BREAKING CHANGE: Remove load_file. Reading NBF files should be done with the new version of PegasusNBFData.