Skip to content
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

PoC fix issue 216 #217

Closed
wants to merge 2 commits into from
Closed

Conversation

larsbarring
Copy link
Contributor

🚀 Pull Request

Description

Added "parser" to check validity of date/time part of time unit string. The "parser" is in fact a low level private function from cftime. Whether this is appropriate I am not sure, but implementing the same functionality more or less from scratch is beyond my capacity. [Hence the "PoC"].

From the added unit tests it seems -- in principle -- that the examples in #216 are handled. Only "in principle" because the actual errors generated by the cftime function are not properly captured. But again, understanding how cython exceptions interact with pytest is too advanced for me.

@larsbarring
Copy link
Contributor Author

Hrm, this was premature, naive and buggy ....

@larsbarring larsbarring deleted the PoC_fix_issue_216 branch February 27, 2022 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant