Skip to content

Commit 6c14fd7

Browse files
committed
http to https
1 parent e0655d2 commit 6c14fd7

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "neonutilities"
7-
version = "1.0.1"
7+
version = "1.0.2"
88
authors = [
99
{name="Claire Lunch", email="[email protected]"},
1010
{name="Bridget Hass", email="[email protected]"},

src/neonutilities/aop_download.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def by_file_aop(dpid,
374374

375375
# query the products endpoint for the product requested
376376
response = get_api(
377-
"http://data.neonscience.org/api/v0/products/" + dpid, token)
377+
"https://data.neonscience.org/api/v0/products/" + dpid, token)
378378

379379
# exit function if response is None (eg. if no internet connection)
380380
if response is None:
@@ -632,7 +632,7 @@ def by_tile_aop(dpid,
632632

633633
# query the products endpoint for the product requested
634634
response = get_api(
635-
"http://data.neonscience.org/api/v0/products/" + dpid, token)
635+
"https://data.neonscience.org/api/v0/products/" + dpid, token)
636636

637637
# exit function if response is None (eg. if no internet connection)
638638
if response is None:

src/neonutilities/get_issue_log.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def get_change_log_df(dpid, token=None):
5656
'issue', 'resolution'
5757
"""
5858
req = get_api(
59-
api_url=f"http://data.neonscience.org/api/v0/products/{dpid}", token=token)
59+
api_url=f"https://data.neonscience.org/api/v0/products/{dpid}", token=token)
6060
if req is None:
6161
logging.info(f"Error in metadata retrieval for {dpid}. Issue log not found.")
6262
return None

src/neonutilities/tabular_download.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def query_files(lst, dpid, site="all", startdate=None, enddate=None,
9696
relurl = "&release=" + release
9797

9898
# construct full query url and run query
99-
qurl = "http://data.neonscience.org/api/v0/data/query?productCode=" + dpid + sitesurl + dateurl + ipurl + "&package=" + package + relurl
99+
qurl = "https://data.neonscience.org/api/v0/data/query?productCode=" + dpid + sitesurl + dateurl + ipurl + "&package=" + package + relurl
100100
qreq = get_api(api_url=qurl, token=token)
101101
if qreq is None:
102102
logging.info("No API response for selected query. Check inputs.")
@@ -320,10 +320,10 @@ def zips_by_product(dpid, site="all", startdate=None, enddate=None,
320320
# end of error and exception handling, start the work
321321
# query the /products endpoint for the product requested
322322
if release == "current" or release == "PROVISIONAL":
323-
prodreq = get_api(api_url="http://data.neonscience.org/api/v0/products/"
323+
prodreq = get_api(api_url="https://data.neonscience.org/api/v0/products/"
324324
+ dpid, token=token)
325325
else:
326-
prodreq = get_api(api_url="http://data.neonscience.org/api/v0/products/"
326+
prodreq = get_api(api_url="https://data.neonscience.org/api/v0/products/"
327327
+ dpid + "?release=" + release, token=token)
328328

329329
if prodreq is None:
@@ -332,7 +332,7 @@ def zips_by_product(dpid, site="all", startdate=None, enddate=None,
332332
return
333333
else:
334334
if release != "current" and release != "PROVISIONAL":
335-
rels = get_api(api_url="http://data.neonscience.org/api/v0/releases/",
335+
rels = get_api(api_url="https://data.neonscience.org/api/v0/releases/",
336336
token=token)
337337
if rels is None:
338338
raise ConnectionError("Data product was not found or API was unreachable.")

tests/test_get_citation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_get_citation_provisional():
2525
Test that the get_citation() function returns the expected citation for provisional data
2626
"""
2727
cit = get_citation(dpid="DP1.10003.001", release="PROVISIONAL")
28-
citexp = '@misc{DP1.10003.001/provisional,\n doi = {},\n url = {https://data.neonscience.org/data-products/DP1.10003.001},\n author = {{National Ecological Observatory Network (NEON)}},\n language = {en},\n title = {Breeding landbird point counts (DP1.10003.001)},\n publisher = {National Ecological Observatory Network (NEON)},\n year = {2024}\n}'
28+
citexp = '@misc{DP1.10003.001/provisional,\n doi = {},\n url = {https://data.neonscience.org/data-products/DP1.10003.001},\n author = {{National Ecological Observatory Network (NEON)}},\n language = {en},\n title = {Breeding landbird point counts (DP1.10003.001)},\n publisher = {National Ecological Observatory Network (NEON)},\n year = {2025}\n}'
2929
assert cit == citexp
3030

3131

0 commit comments

Comments
 (0)