diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a02b2fc..d12f6d8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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 diff --git a/oceans/RPSstuff.py b/oceans/RPSstuff.py index 46bd8ff..85db246 100644 --- a/oceans/RPSstuff.py +++ b/oceans/RPSstuff.py @@ -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") diff --git a/oceans/datasets.py b/oceans/datasets.py index a5848e6..c856eb6 100644 --- a/oceans/datasets.py +++ b/oceans/datasets.py @@ -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"][:]