Skip to content

Commit

Permalink
Remove hardcoded format in nwis.get_discharge_measurements
Browse files Browse the repository at this point in the history
  • Loading branch information
thodson-usgs authored Aug 7, 2024
1 parent d3865a2 commit d35a2e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dataretrieval/nwis.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,11 @@ def get_discharge_measurements(
kwargs['begin_date'] = kwargs.pop('begin_date', start)
kwargs['end_date'] = kwargs.pop('end_date', end)

if 'format' not in kwargs:
kwargs['format'] = 'rdb'

response = query_waterdata(
'measurements', format='rdb', ssl_check=ssl_check, **kwargs
'measurements', ssl_check=ssl_check, **kwargs
)
return _read_rdb(response.text), NWIS_Metadata(response, **kwargs)

Expand Down

0 comments on commit d35a2e4

Please sign in to comment.