[LINT/REFACTOR] Ruff compliance pass — annotations, docstrings, noqa, test fixes#30
Merged
Conversation
…_VARS, _STACK_RAW, and _vel_vars (3 small hunks). report/_html_helpers.py — One-line fix: v.shape[0] → np.prod(v.shape) so 2D stack/grid variables count total elements correctly, not just the first dimension. report/_stack.py and report/_grid.py — Both have the same pattern of changes: - Import _read_nc_metadata from _html_helpers - Replace the old inline var_table loop (simple 4-column table) with _read_nc_metadata(path) called after ds.close() - Pass nc_meta + nc_file to Jinja2 instead of var_table - Replace the old simple HTML table in the template with the full three-table layout (variables + scalar metadata + global attrs) matching the instrument report style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary: