-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TDS5 NCSS fixes #168
TDS5 NCSS fixes #168
Conversation
The inclusion of the NCML namespace was breaking the parsing because ElementTree hands us tag names with the namespace included. Fix by stripping out the namespace, which seems to be the most common solution. Also take the opportunity to move handler lookup to _Types so that we don't make an external reference to _Types.__dict__ (Ew.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All test failures coming from the minor change of the warning. ['a']
is now being represented as [\'a\']
except ValueError: | ||
log.warning('Cannot convert %s to int. Keeping type as str.', val) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't do .format
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, logging is old-style only.
TDS is including a ',' as a separator in places, so optionally split on that.
fb11c19
to
d33d8ad
Compare
Not exactly...I replaced |
It wasn't accomplishing anything (other than serving for `from siphon import *`). More importantly, it was actually incorrect by mentioning `upperair`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM saves the day!
Looks like the AppVeyor failure was transient. 🎉 |
This fixes some errors and a bunch of warnings in parsing the
dataset.xml
on a TDS 5.0 grib collection.