Skip to content

Reactor to use cvs file for conventions and update bounds #5

Merged
hgoelzer merged 4 commits into
mainfrom
hgoelzer/bounds_handling
Jun 19, 2026
Merged

Reactor to use cvs file for conventions and update bounds #5
hgoelzer merged 4 commits into
mainfrom
hgoelzer/bounds_handling

Conversation

@hgoelzer

Copy link
Copy Markdown
Member

The variable request criteria are now stored in conventions/ISMIP7_variable_request.csv instead of an Excel file, making the data diff-friendly and human-readable in version control. Both compliance_checker.py and generate/generate_test_files.py are updated to use pd.read_csv(); openpyxl is removed from isschecker_env.yml. README, generate/README

hgoelzer added 4 commits June 18, 2026 19:06
State variable (ST) timestamps now follow the ismip7-time-encoding
reference: end-of-year snapshots are encoded as Jan 1 of the following
year (e.g. simulation year 2015 → 2016-01-01), not Dec 31.

Flux variable (FL) encoding is unchanged: mid-year timestamp Jul 1
with time bounds [Jan 1, Jan 1 next year].

experiments_ismip7.csv is redesigned to store nominal simulation years
(start_year_min, start_year_max, end_year) instead of raw date strings.
The checker derives expected FL/ST timestamps at runtime via the new
_nominal_to_timestamp() helper, applying ±1 day tolerance for float32
encoding jitter.

_check_naming() and _check_time() both receive var_type so the ST
year offset (filename year N = timestamp year N+1) is handled correctly.
The test suite and README are updated accordingly.
The variable request criteria are now stored in conventions/ISMIP7_variable_request.csv
instead of an Excel file, making the data diff-friendly and human-readable in version
control. Both compliance_checker.py and generate/generate_test_files.py are updated to
use pd.read_csv(); openpyxl is removed from isschecker_env.yml. README, generate/README,
and CLAUDE.md are updated to reflect the new file name and dropped dependency.
@hgoelzer hgoelzer requested a review from xylar June 19, 2026 12:02
@hgoelzer hgoelzer self-assigned this Jun 19, 2026
@hgoelzer hgoelzer added the enhancement New feature or request label Jun 19, 2026
@hgoelzer

Copy link
Copy Markdown
Member Author

Validated to reproduce the same results as with csv compared to the excel conventions file. Adjusted ranges should make the checker less sensitive for some models. Moving forward with this PR

@hgoelzer hgoelzer merged commit 4b2717d into main Jun 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant