glue
glue copied to clipboard
Initial work on unit support
This adds initial support for unit conversion in the profile viewer, as a test case that is also useful for jdaviz.
Remaining TODOs:
- [x] Make sure this works properly with glue-jupyter
- [x] Add documentation about pluggable conversion classes
- [ ] Add tests
As mentioned in https://github.com/glue-viz/glue-jupyter/pull/311 I am planning on making the unit conversion pluggable/swappable. More soon!
When you have coded it, I am gonna throw in some magnitudes to make your life interesting, maybe. 😉
p.s. I think at its current state, this PR broke Specviz parser. I had this installed and was doing something else and it crashed. The error went away when I uninstalled this branch and reinstalled glue-core 1.3.0
I will go ahead and merge this, but @dhomeier feel free to take a look at this anyway if you have time and let me know if you spot anything that needs fixing!