Skip to content

Commit ff92fa9

Browse files
authored
change waterdata request limit to 50000 (#197)
1 parent 0326be1 commit ff92fa9

3 files changed

Lines changed: 8 additions & 57670 deletions

File tree

dataretrieval/waterdata/api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def get_daily(
161161
limit : numeric, optional
162162
The optional limit parameter is used to control the subset of the
163163
selected features that should be returned in each page. The maximum
164-
allowable limit is 10000. It may be beneficial to set this number lower
164+
allowable limit is 50000. It may be beneficial to set this number lower
165165
if your internet connection is spotty. The default (NA) will set the
166166
limit to the maximum allowable limit for the service.
167167
convert_type : boolean, optional
@@ -467,7 +467,7 @@ def get_monitoring_locations(
467467
limit : numeric, optional
468468
The optional limit parameter is used to control the subset of the
469469
selected features that should be returned in each page. The maximum
470-
allowable limit is 10000. It may be beneficial to set this number lower
470+
allowable limit is 50000. It may be beneficial to set this number lower
471471
if your internet connection is spotty. The default (NA) will set the
472472
limit to the maximum allowable limit for the service.
473473
skip_geometry : boolean, optional
@@ -662,7 +662,7 @@ def get_time_series_metadata(
662662
limit : numeric, optional
663663
The optional limit parameter is used to control the subset of the
664664
selected features that should be returned in each page. The maximum
665-
allowable limit is 10000. It may be beneficial to set this number lower
665+
allowable limit is 50000. It may be beneficial to set this number lower
666666
if your internet connection is spotty. The default (None) will set the
667667
limit to the maximum allowable limit for the service.
668668
convert_type : boolean, optional
@@ -838,7 +838,7 @@ def get_latest_continuous(
838838
limit : numeric, optional
839839
The optional limit parameter is used to control the subset of the
840840
selected features that should be returned in each page. The maximum
841-
allowable limit is 10000. It may be beneficial to set this number lower
841+
allowable limit is 50000. It may be beneficial to set this number lower
842842
if your internet connection is spotty. The default (None) will set the
843843
limit to the maximum allowable limit for the service.
844844
convert_type : boolean, optional
@@ -1013,7 +1013,7 @@ def get_latest_daily(
10131013
limit : numeric, optional
10141014
The optional limit parameter is used to control the subset of the
10151015
selected features that should be returned in each page. The maximum
1016-
allowable limit is 10000. It may be beneficial to set this number lower
1016+
allowable limit is 50000. It may be beneficial to set this number lower
10171017
if your internet connection is spotty. The default (None) will set the
10181018
limit to the maximum allowable limit for the service.
10191019
convert_type : boolean, optional
@@ -1179,7 +1179,7 @@ def get_field_measurements(
11791179
limit : numeric, optional
11801180
The optional limit parameter is used to control the subset of the
11811181
selected features that should be returned in each page. The maximum
1182-
allowable limit is 10000. It may be beneficial to set this number lower
1182+
allowable limit is 50000. It may be beneficial to set this number lower
11831183
if your internet connection is spotty. The default (None) will set the
11841184
limit to the maximum allowable limit for the service.
11851185
convert_type : boolean, optional

dataretrieval/waterdata/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,10 +382,10 @@ def _construct_api_requests(
382382
# Set skipGeometry parameter (API expects camelCase)
383383
params["skipGeometry"] = skip_geometry
384384

385-
# If limit is none or greater than 10000, then set limit to max results. Otherwise,
385+
# If limit is none or greater than 50000, then set limit to max results. Otherwise,
386386
# use the limit
387387
params["limit"] = (
388-
10000 if limit is None or limit > 10000 else limit
388+
50000 if limit is None or limit > 50000 else limit
389389
)
390390

391391
# Indicate if function needs to perform POST conversion

0 commit comments

Comments
 (0)