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
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [ "3.11", "3.12", "3.13" ]
python-version: [ "3.11", "3.12", "3.13", "3.14" ]
os: [ windows-latest, ubuntu-latest, macos-latest ]
fail-fast: false

Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:
- id: add-trailing-comma

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
rev: v0.14.14
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down Expand Up @@ -67,7 +67,7 @@ repos:
- id: pyproject-fmt

- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.19.0
rev: v1.22.0
hooks:
- id: zizmor

Expand Down
6 changes: 3 additions & 3 deletions ctd/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ def rosette_summary(fname: str | Path) -> pd.DataFrame:
ros["pressure"] = ros.index.to_numpy().astype(float)
ros["nbf"] = ros["nbf"].astype(int)
metadata = ros._metadata # noqa: SLF001
ros = ros.set_index("nbf", drop=True, verify_integrity=False)
ros = ros.set_index("nbf", drop=True)
ros._metadata = metadata # noqa: SLF001
return ros

Expand All @@ -564,7 +564,7 @@ def from_castaway_csv(fname: str | Path) -> pd.DataFrame:
>>> cast.columns
Index(['depth', 'temperature', 'conductivity', 'specific_conductance',
'salinity', 'sound_velocity', 'density'],
dtype='object')
dtype='str')

"""
f = _read_file(fname)
Expand All @@ -588,7 +588,7 @@ def from_castaway_csv(fname: str | Path) -> pd.DataFrame:
_normalize_names(s.split("(")[0]).lower().replace(" ", "_")
for s in cast.columns
]
cast = cast.set_index("pressure", drop=True, verify_integrity=False)
cast = cast.set_index("pressure", drop=True)

# Add metadata
meta = [s.replace("%", "").strip().split(",") for s in meta]
Expand Down