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
4 changes: 2 additions & 2 deletions .github/workflows/full_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.14"]
python-version: ["3.12", "3.14"]
pandas-version: ["pandas2", "pandas3"] # TODO: drop pandas2 once 3.x is well-established

steps:
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Set up uv
uses: astral-sh/setup-uv@v6
with:
python-version: "3.11"
python-version: "3.12"
enable-cache: true

- name: Install dependencies (without networks)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.11", "3.14"]
python-version: ["3.12", "3.14"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scheduled_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.11", "3.14"]
python-version: ["3.12", "3.14"]

steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ authors = [
description = "Compare results from simulations with observations."
license = "MIT"
readme = "README.md"
requires-python = ">=3.11"
requires-python = ">=3.12"
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering",
]

Expand Down Expand Up @@ -77,7 +77,7 @@ ignore = ["E501"]
select = ["E4", "E7", "E9", "F", "D200", "D205"]

[tool.mypy]
python_version = "3.11"
python_version = "3.12"
ignore_missing_imports = true
warn_unreachable = false
no_implicit_optional = true
Expand Down
2 changes: 1 addition & 1 deletion src/modelskill/comparison/_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def rename(self, mapping: Dict[str, str]) -> "ComparerCollection":
return ComparerCollection(cmps)

@overload
def __getitem__(self, x: slice | Iterable[Hashable]) -> ComparerCollection: ...
def __getitem__(self, x: slice | Iterable[Hashable]) -> ComparerCollection: ... # type: ignore[overload-overlap]

@overload
def __getitem__(self, x: int | Hashable) -> Comparer: ...
Expand Down
4 changes: 3 additions & 1 deletion src/modelskill/comparison/_vertical_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ def hovmoller(
V = v.reshape(len(T), n_layers)
T_grid, _ = np.meshgrid(T, np.arange(n_layers), indexing="ij")
cf = ax.contourf(T_grid, Z, V, **kwargs)
cbar = ax.figure.colorbar(cf, ax=ax)
fig = ax.figure
assert fig is not None
cbar = fig.colorbar(cf, ax=ax)
cbar.set_label(cmp._unit_text)
if self._pos_z():
ax.invert_yaxis()
Expand Down
Loading