navo-workshop
navo-workshop copied to clipboard
BUG: VO unit warnings when running the notebooks
Running some cells in the notebooks produce warnings:
WARNING: UnitsWarning: Unit 'degree' not supported by the VOUnit standard. [astropy.units.format.vounit]
WARNING: UnitsWarning: Unit 'mjd' not supported by the VOUnit standard. Did you mean MD, MJ, Md, mD, mJ or md? [astropy.units.format.vounit]
Some are already filtered by including filters at the top (e.g. warnings.filterwarnings('ignore', '.*Unknown element .*', vo.utils.xml.elements.UnknownElementWarning)
). Others are related to the units in some services not being proper VOUnits (the above two example), and they show up in the rendered notebooks (e.g. here).
This issue is to open discussion about how they should be handled.
This is a quote from @bsipocz copied from slack:
I still strongly feel that pedagogically we should not add filterwarnings into user notebooks but rather show how to fix those units. That being said, something is clearly broken with the current solution.