Skip to content

Fix gauge id parsing in gauge CLI and validate fields - #773

Open
mandli wants to merge 1 commit into
clawpack:masterfrom
mandli:fix-gauge-cli-ids
Open

mandli wants to merge 1 commit into
clawpack:masterfrom
mandli:fix-gauge-cli-ids

Conversation

@mandli

@mandli mandli commented Nov 6, 2026

Copy link
Copy Markdown
Member

Summary

There was a latent bug when the CLI code for gauges parsed gauge IDs from file names. Also skips non-gauge files (it was using a simple glob before) and if the fields do not match raises an exception. Also adds a couple of suggested tests.


Assisted-by: claude claude-opus-5-5

find_gauge_ids() parses the full id from gaugeNNNNN.txt (Fortran writes I0.5, so ids can exceed 5 digits) and skips non-gauge files; compare_gauges raises a clear error for fields missing from either run. Adds tests.

Signed-off-by: Kyle Mandli <kyle.mandli@gmail.com>
Assisted-by: claude claude-opus-5-5
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 49.485% (+2.4%) from 47.079% — mandli:fix-gauge-cli-ids into clawpack:master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants