-
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
Catalog strptime #272
Catalog strptime #272
Conversation
Looks like there are some flake8 issues and we probably need a test added for this as well. |
It looks like there is no existing test for |
Good catch - yeah that would probably be best. |
I added two tests: a standalone regex and regex with strptime. I don't understand the flake8 errors on travis, though I gather from above there may be some big-picture things driving those errors, and not this PR? |
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.
Just some flake8 issues here. @dopplershift, do you know what the rest of the pydocstyle issues stem from? Any other feedback you have on this?
It's been a couple weeks of annoying package incompatibilities. |
flake8-docstrings <= 1.3 and pydocstyle >= 4.0 do not play nice together. This works around the problem until it's resolved.
Well, that fixed the errors about |
Looks like there's just a couple lint issues left to deal with on this and then it's good to go! |
I think the remaining lint issues are handled. Looks like the only remaining Travis problem is a connection error in some part of the code not related to this PR? |
Thanks for your work on this! So the remaining issue is documented in #273 and doesn't have anything to do with this PR. I think this is good to merge, but I'll defer to @dopplershift. |
Thanks @deeplycloudy ! |
My pleasure, @dopplershift and my thanks to you and @zbruick for a pleasant PR process! |
Some datasets, including various GOES datasets on the Unidata THREDDS catalog, don't have a time dimension, but that time dimension can be inferred from the filename. However, those GOES filenames have julian days in the timestamps, making it not possible to trivially parse them with the current regex approach in DatasetCollection.
This PR adds an additional regex tag
strptime
and an additional argument for supplying thedatetime.strptime
format string. This functionality increases the number of filenames from which time information can be harvested .