Skip to content

Use pint for units #91

@domna

Description

@domna

For easier unit conversion and loading we want to use pint.
There are a few considerations

  • As it integrates nicely with numpy arrays, we should make sure that it also works good with pandas and xarray (to support the further data representation path).
  • It should be usable without overhead when default units are used, so maybe conversion can happen automatically for wavelengths in nm.
  • It should make using data in other units as easy as possible (also conversion from wavenumber and energy), so it should be not more as using an ureg("eV") to specifiy the unit of the data used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions