Skip to content

Commit

Permalink
Merge pull request #96 from ocefpaf/use_https
Browse files Browse the repository at this point in the history
Use https
  • Loading branch information
ocefpaf authored Sep 5, 2023
2 parents 5e4e972 + 845afad commit 1805869
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ repos:
- id: blackdoc

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.272
rev: v0.0.287
hooks:
- id: ruff

- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.7.0
hooks:
- id: black
language_version: python3
Expand All @@ -46,11 +46,11 @@ repos:
- --ignore-words-list=pres

- repo: https://github.com/asottile/add-trailing-comma
rev: v2.5.1
rev: v3.1.0
hooks:
- id: add-trailing-comma

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "0.12.1"
rev: "1.1.0"
hooks:
- id: pyproject-fmt
2 changes: 1 addition & 1 deletion oceans/RPSstuff.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def coast2bln(coast, bln_file):
kk = list(range(ind[k] + 1, ind[k + 1]))
NP = int(len(kk))
bln[ind[k], 0] = NP
bln[ind[k], 1] = int(1)
bln[ind[k], 1] = 1

bln = bln[:-1]
np.savetxt(bln_file, bln, fmt="%g")
Expand Down
2 changes: 1 addition & 1 deletion oceans/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def etopo_subset(min_lon, max_lon, min_lat, max_lat, tfile=None, smoo=False):
Based on trondkristiansen contourICEMaps.py
"""
if tfile is None:
tfile = "http://gamone.whoi.edu/thredds/dodsC/usgs/data0/bathy/ETOPO2v2c_f4.nc"
tfile = "https://gamone.whoi.edu/thredds/dodsC/usgs/data0/bathy/ETOPO2v2c_f4.nc"

with Dataset(tfile, "r") as etopo:
lons = etopo.variables["x"][:]
Expand Down

0 comments on commit 1805869

Please sign in to comment.