Skip to content

Commit

Permalink
Merge pull request #66 from ioos/update_authority_table_url
Browse files Browse the repository at this point in the history
Update authority table url
  • Loading branch information
benjwadams authored Oct 29, 2024
2 parents 24f02ea + 17754d1 commit 6e8ac1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cc_plugin_glider/glider_dac.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, options=None):

self.options = options
# try to get the sea names table
ncei_base_table_url = "https://gliders.ioos.us/ncei_authority_tables/"
ncei_base_table_url = "https://www.ncei.noaa.gov/data/oceans/ncei/cfg/ngdac/"
# might refactor if the authority tables names change
table_type = {
"project": "projects.txt",
Expand Down Expand Up @@ -89,7 +89,7 @@ def request_resource(cls, url, backup_resource, fn):

elif backup_resource is None or fail_flag:
try:
resp = requests.get(url, timeout=10)
resp = requests.get(url, allow_redirects=True, timeout=10)
resp.raise_for_status()
text_contents = resp.text
except RequestException:
Expand Down
2 changes: 1 addition & 1 deletion cc_plugin_glider/tests/test_glidercheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_dataset(self, nc_dataset):
def setUp(self):
# set up authority tables to prevent needing to fetch resources over
# network, deal with changes, etc
ncei_base_table_url = "https://gliders.ioos.us/ncei_authority_tables/"
ncei_base_table_url = "https://www.ncei.noaa.gov/data/oceans/ncei/cfg/ngdac/"
# this is only a small subset
institutions = """MARACOOS
University of Delaware
Expand Down

0 comments on commit 6e8ac1b

Please sign in to comment.