Open ChrisBeaumont opened 10 years ago
@ChrisBeaumont - you might already have this, but what about a scatter plot viewer that has Robert Hurt's galaxy as the background? Can try and implement later if needed.
Somewhat related question - does glue currently preserve units on fields? (it's going to be important for some of these custom viewers)
what about a scatter plot viewer that has Robert Hurt's galaxy as the background
I don't have that already, but it would be cool!
Somewhat related question - does glue currently preserve units on fields? (it's going to be important for some of these custom viewers)
If you're referring to astropy quantities, I'm not sure. My guess is that they might stick around for a while, but they might get cast into vanilla arrays if they get passed through a transformation function. I think there's an ancient metadata field attached to a glue Component, but it's hardly ever been used. It would be good to expose some cases where units are needed, to see how we can improve things
Regarding the units, I don't think we necessarily have to use astropy quantities, but if we could preserve units even just as strings that would make it easier to figure out whether fields need to be converted before being displayed (a given client could chose to parse the units with pint or astropy if needed).
We'd probably have to make some tweaks, but they should be straightforward
@ChrisBeaumont - maybe I could give it a shot? I can try and develop a viewer for which this is needed, and then do whatever fixes are needed in glue.
@astrofrog @judowill if you come up with interesting data viewer examples (with small+sharable datasets), could you add to the examples here?