Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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