seermedical / seer-py

Python SDK for the Seer data platform
MIT License
27 stars 10 forks source link

Fix dataChunk.end for last chunk in segment #142

Closed timesler closed 3 years ago

timesler commented 3 years ago

Before this change, the SeerConnect.get_data_chunk_urls method assumed that all chunks were the full chunk_period. This is typically not true for the last chunk in each segment. As a result, the chunkData.end column in the returned dataframe was incorrect for the last chunk in each segment.

This change ensures that the end of the last chunk matches segments.startTime + segments.Duration.