Skip to content

Fix depth-axis clipping in quick look plots caused by _grid_dims() rounding down - #207

Merged
MBARIMike merged 1 commit into
mbari-org:mainfrom
MBARIMike:main
Sep 3, 2026
Merged

MBARIMike merged 1 commit into
mbari-org:mainfrom
MBARIMike:main

Conversation

@MBARIMike

Copy link
Copy Markdown
Collaborator

_grid_dims() rounded the computed max_depth down to the nearest 10m and could silently exclude a plotted variable from the max-depth calculation based on its dimension name, both of which clipped legitimate, already-QC'd depth data off the bottom of the color-shaded plots. Round up instead, and use a direct shape comparison for variable inclusion. Adds test_create_products.py, which had no prior coverage.

…unding down

_grid_dims() rounded the computed max_depth down to the nearest 10m and could
silently exclude a plotted variable from the max-depth calculation based on
its dimension name, both of which clipped legitimate, already-QC'd depth data
off the bottom of the color-shaded plots. Round up instead, and use a direct
shape comparison for variable inclusion. Adds test_create_products.py, which
had no prior coverage.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@MBARIMike
MBARIMike merged commit 733ebe1 into mbari-org:main Sep 3, 2026
2 checks passed
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.

1 participant