You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When checking whether there is data available we sometimes get False even though there is data. measurements_available check was part of measurements from #33, but this was temporarily disabled in #57 because of this. Re-enable this check again after fix in ddl.
What I Did
importddlpylocations=ddlpy.locations()
bool_hoedanigheid=locations['Hoedanigheid.Code'].isin(['NAP'])
bool_stations=locations.index.isin(['HOEKVHLD'])
bool_grootheid=locations['Grootheid.Code'].isin(['WATHTE'])
selected=locations.loc[bool_grootheid&bool_hoedanigheid&bool_stations]
date_min="1980-01-01"date_max="1980-01-05"# if we pass one row to the measurements function you can get all the measurementsavailable=ddlpy.measurements_available(selected.iloc[0], date_min, date_max)
measurements=ddlpy.measurements(selected.iloc[0], date_min, date_max)
measurements.plot(y='Meetwaarde.Waarde_Numeriek', linewidth=0.5, figsize=(13, 8))
print("available:", available)
print("num meas:", len(measurements))
This is an issue in ddl, not in ddlpy, the corresponding issue can be found here: Rijkswaterstaat/wm-ws-dl#11
After this is fixed, the measurements_available check can be re-introduced as part of measurements again. This significantly speeds up the retrieval process for years without data.
The text was updated successfully, but these errors were encountered:
Description
When checking whether there is data available we sometimes get
False
even though there is data.measurements_available
check was part ofmeasurements
from #33, but this was temporarily disabled in #57 because of this. Re-enable this check again after fix in ddl.What I Did
Prints
available: False
butnum meas: 28
.This also happens the other way round
This prints:
This is an issue in ddl, not in ddlpy, the corresponding issue can be found here: Rijkswaterstaat/wm-ws-dl#11
After this is fixed, the
measurements_available
check can be re-introduced as part ofmeasurements
again. This significantly speeds up the retrieval process for years without data.The text was updated successfully, but these errors were encountered: