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

Time Specification #46

Merged
merged 2 commits into from Dec 9, 2019
Merged

Time Specification #46

merged 2 commits into from Dec 9, 2019

Conversation

lkiesow
Copy link
Contributor

@lkiesow lkiesow commented Nov 27, 2019

The Copernicus API is very picky when it comes to date/time formats,
accepting only a subset of ISO-8601 time strings. To make working with
the API easier and less error-prone, this patch makes sentinel5dl accept
datetime objects for time specification, automatically converting them
into the required string representation.

@lkiesow lkiesow added the enhancement New feature or request label Nov 27, 2019
lkiesow and others added 2 commits December 6, 2019 17:10
The Copernicus API is very picky when it comes to date/time formats,
accepting only a subset of ISO-8601 time strings. To make working with
the API easier and less error-prone, this patch makes sentinel5dl accept
datetime objects for time specification, automatically converting them
into the required string representation.
With try catch we do not explicitely rule object out which are not
`datetime.datetime` objects.
Copy link
Contributor

@shaardie shaardie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed the conflict and added a commit to use try-catch instead of datetime.datetime type checking. You can merge this, if you are happy.

@lkiesow lkiesow merged commit b9aefdd into emissions-api:master Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants