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
1 change: 1 addition & 0 deletions isschecker/data/experiments_ismip7.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ historical;1850;2014;2014;-1
ssp370;2015;2015;2100;86
ssp126;2015;2015;2300;286
ssp585;2015;2015;2300;286
ssp534-over;2015;2015;2300;286
ctrl;2015;2015;2300;286
ocx;1950;2015;2025;-1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "isschecker"
version = "0.7.0"
version = "0.8.0"
description = "ISMIP7 compliance checker for ice sheet model simulation NetCDF datasets"
readme = "README.md"
license = "MIT"
Expand Down
24 changes: 24 additions & 0 deletions tests/test_compliance_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,30 @@ def test_checker_reports_historical_time_range_violation(case_dir):
)


def test_checker_accepts_an_ssp534_over_run(tmp_path):
"""The overshoot scenario of E001 and E002 runs 2015-2300."""
generate_test_files.create_netcdf_file(
None,
grid_name="GrIS_16000m",
scenario="ssp534-over",
start_year=2015,
nyears=286,
include_scalars=True,
include_xyt=False,
set_counter="E001",
output_root=tmp_path / "gen",
)
core_dir = tmp_path / "gen" / "GrIS" / "ISMIP7" / "SYNTH1" / "CORE" / "E001"

summary = run_checker(core_dir)

assert summary["total_errors"] == 0, summary["log_text"]
assert (
"covering nominal years 2015-2300, as experiment 'ssp534-over'"
" requires: OK" in summary["log_text"]
)


def generate_ocx_run(root: Path, start_year: int, include_xyt: bool) -> Path:
"""An OCX run ending in 2025, with NONE in the ESM field."""
generate_test_files.create_netcdf_file(
Expand Down
Loading