Skip to content

Change datetime behaviour in get_vpts() #59

Description

@PietrH

Suggestion is that if a single timepoint is provided instead of an interval, only data that matches this datetime as closely as possible should be returned.

For daily resolution: the closest available day
For hourly resolution: the closest available hour
For minute, and second resolution: a single row of the vpts file.

However, we want to avoid returning data too far away from the timestamp, so there should be some reasonable rounding/ceiling-floor logic. Perhaps, within 20 minutes or so? Like if no data is found within 20 minutes, return an error?

Intervals should always be within the interval. If one end of the interval does not have data (for example, the upper bound is in the future), then the existing data should be returned. If nothing exists in the interval, return an error.

Discussed with @peterdesmet, @CeciliaNilsson709 and @bart1. Please add on to this if I got anything wrong!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions