OceanNetworksCanada / api-python-client

Provides easy access to ONC data in Python
https://oceannetworkscanada.github.io/api-python-client/
Apache License 2.0
10 stars 9 forks source link

Estimation time when downloading scalardata in multiple pages is not near the actual case sometimes #45

Closed kan-fu closed 1 month ago

kan-fu commented 1 month ago

When running

deviceCode = 'RBRQUARTZ3BPR202321'

deployments = pd.DataFrame(onc.getDeployments({'deviceCode':deviceCode}))
d = onc.getDirectByLocation({'locationCode':deployments.iloc[1]['locationCode'],
                             'deviceCategoryCode':'BPR',
                             'sensorCategoryCodes':'pressure',
                             'dateFrom':deployments.iloc[1]['begin'],
                             'dateTo':'2020-09-30',#deployments.iloc[1]['end'],
                             'resampleType':'avg',
                             'qualityControl':'clean',
                             'resamplePeriod':1},allPages=True)

The estimated pages is 6 pages, but from the log it is more than that clearly. Screenshot 2024-09-05 at 3 53 30 PM