Skip to content

Changelog

Version 0.3.0

Added

  • Add support for the ASD Energy Level Database, accessible via the SpectraCache.level attribute
  • All data parsing based on PyArrow for the ASD Lines and Energy Level databases
    • Only a single logic branch to maintain
    • Easier checking if the data is equivalent between pandas and polars as dataframe frameworks.
  • Added user agent info identifying ASDCache when querying the ASD.
  • The cached_spectra attribute to list the set of cached spectra.
  • Add support for force_refresh and only_if_cached keyword arguments for cache control
  • Shared behaviour between caching classes implemented through several mixins;

Changed

  • Only a single cache file is needed for all databases (and used by default), instead of a separate file for e.g. SpectraCache and BibCache.
  • Separate code paths for pandas and polars parsing have been removed in favour of a single path through a PyArrow.Table
  • Info such as the queried species is now extracted from the request URL based on url parameters instead of regexes.
  • Various updates to docs, code formatting and tests.

Version 0.2.4

  • Fix #2: a regression when using the polars backend: missing uncertainty data is handled properly again
  • Fix #3: Relaxed version pin of numpy from >=2.0 to >=1.20.3 to maintain support for older environments
  • Support Python 3.9 again, reverting type hints etc. to what is supported by this version.
  • Add support for Python 3.14
  • Increase default cache time-to-live to two weeks
  • Update test suite
  • Minor refactoring and doc updates

Version 0.2.3

  • Fix issue #1: update the set of queried parameters so the ASD replies with data again; likely some small internal changes to the ASD were implemented.
  • Update unit tests and test cleanup
  • polars is now a mandatory dependency for unit tests
  • Cleanup polars expressions for parsing ASD data
  • Added support for new handling of strings as datatype in pandas 3.0; supporting both pandas 2 and 3
  • Test matrix tests against both versions of pandas.

Version 0.2.*

Public release version

  • Release to PyPI
  • Update documentation only on new release

Version 0.1.*

Initial development release.

  • Support fetching and caching from the NIST ASD
  • Cache-TTL defaults to 1 week for now
  • Caching hash is computed on all query parameters by default (strict=True)
    • Can be cached on only elements, ionization and wavelength range, with strict = False
  • Enable retrieving all cached species/queries
  • Give user the option to use polars instead of pandas as Dataframe backend if installed
  • Start writing documentation
  • Auto-generated code reference included
  • Example usage using a jupyter notebook included
  • Add citing information
  • Add test using pytest
  • Also checks for consistentcy of results between pandas and polars backends.
  • Set up CI/CD
  • Documentation automatic generation and deploy of latest version
  • Automated run of test suite
  • Add bibliography lookups
  • Archive releases to Zenodo
  • Renamed project to ASDCache