Skip to content

Commit fa7b5f7

Browse files
committed
Fix typos
1 parent 45f54fa commit fa7b5f7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

dataretrieval/samples.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
BASE_URL = "https://api.waterdata.usgs.gov/samples-data"
2626

27-
_SERVICES = Literal["activites", "locations", "organizations", "projects", "results"]
27+
_SERVICES = Literal["activities", "locations", "organizations", "projects", "results"]
2828

2929
_PROFILES = {
3030
"activities": Literal["sampact", "actmetric", "actgroup", "count"],
@@ -49,7 +49,7 @@
4949
"characteristicgroup",
5050
"characteristics",
5151
"counties",
52-
"countries"
52+
"countries",
5353
"observedproperty",
5454
"samplemedia",
5555
"sitetype",
@@ -102,7 +102,7 @@ def get_codes(code_service: _CODE_SERVICES) -> DataFrame:
102102

103103
response = requests.get(url)
104104

105-
response.raise_for_status
105+
response.raise_for_status()
106106

107107
data_dict = json.loads(response.text)
108108
data_list = data_dict['data']
@@ -303,7 +303,7 @@ def get_usgs_samples(
303303

304304
response = requests.get(url, params=params, verify=ssl_check)
305305

306-
response.raise_for_status
306+
response.raise_for_status()
307307

308308
df = pd.read_csv(StringIO(response.text), delimiter=",")
309309

0 commit comments

Comments
 (0)