transition-zero / tz-client

A client repository for accessing FEO data programmatically.
https://docs.feo.transitionzero.org
Apache License 2.0
21 stars 4 forks source link

Cannot get records before 2023-01-01 #130

Open isabellasoldner opened 4 months ago

isabellasoldner commented 4 months ago

Checklist

Reproducible Example

records = []
for id in assets.id.unique():
  record_collection = RecordCollection.search(
      id,
      valid_timestamp_start="2023-01-01 00:00:00",
      datum_type=["production"],
      limit=1000
  )
  records.append(record_collection)
records = pd.concat(records)

# Can't get records within a date range !!
# Can't get records with valid_timestamp_start before 2023-01-01 !!!

records = records[records.valid_timestamp_start < "2023-02-15 00:00:00"]

Issue Description

Cannot get records with timestamps before 2023-01-01. This is definitely present in the database so is a bug.

Expected Behavior

Be able to access data with timestamps before 2023