Skip to content

Interpolation or retrieval does not work at subsecond level #69

Description

@valeriu-balaban

When trying to extract the value from TGeomPointSeq using the value_at_timestamp method, and the timestamp provided has a non-zero microseconds part, the microseconds would not be considered for interpolation or retrieval.

To Reproduce
Let tgps be equal to TGeomPointSeq([POINT(295.9722900390625 654.239990234375)@2024-05-07 14:47:07-07, POINT(343.66021728515625 633.1279296875)@2024-05-07 14:47:07.1001-07, POINT(419.7856750488281 599.8984985351562)@2024-05-07 14:47:07.2002-07, POINT(483.23553466796875 565.5811767578125)@2024-05-07 14:47:07.3003-07, POINT(547.3091430664062 539.0184326171875)@2024-05-07 14:47:07.4004-07, POINT(607.9834594726562 513.4208374023438)@2024-05-07 14:47:07.5005-07, POINT(662.676513671875 490.9242858886719)@2024-05-07 14:47:07.6006-07, POINT(714.170654296875 475.9928894042969)@2024-05-07 14:47:07.7007-07, POINT(764.0394897460938 462.255126953125)@2024-05-07 14:47:07.8008-07, POINT(807.018310546875 448.92486572265625)@2024-05-07 14:47:07.9009-07, POINT(846.0618896484375 436.96124267578125)@2024-05-07 14:47:08.001-07]), then calling tgps.value_at_timestamp(datetime.datetime(2024, 5, 7, 14, 47, 7, 400400)) would return <POINT (295.972 654.24)> (the first point in the sequence) instead of the expected <POINT (547.30 539.01)> (the value of the 5th instant in the sequence).

Desktop (please complete the following information):

  • OS: macOS
  • Architecture: x64
  • Environment: conda
  • Version 1.1.4

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions