[ ] It would be desirable to allow any cross-conversions between wavelength, wavenumber and energy (documenting in the metadata the conversions to warn if multiple conversions are done on the same axis). To this end, it may be considered to move the main part of the code into a generalized conversion function.
[x] As pointed out in https://github.com/LumiSpy/lumispy/pull/140#discussion_r977382638, there is quite some duplicate code in the if/else statements of the axis conversion codes that can be consolidated.
[ ] It would be desirable to allow any cross-conversions between wavelength, wavenumber and energy (documenting in the metadata the conversions to warn if multiple conversions are done on the same axis). To this end, it may be considered to move the main part of the code into a generalized conversion function.