Skip to content

Harden droplet analysis notebook against empty slices#3

Merged
drcole17 merged 2 commits intomasterfrom
claude/exciting-kapitsa-370020
Apr 23, 2026
Merged

Harden droplet analysis notebook against empty slices#3
drcole17 merged 2 commits intomasterfrom
claude/exciting-kapitsa-370020

Conversation

@drcole17
Copy link
Copy Markdown
Owner

Summary

  • interface_thickness_x_ray now raises RuntimeError (not bare ValueError) when the x-ray mask covers no grid cells
  • X-ray plot, derived-thickness, and time-series cells catch (RuntimeError, ValueError) and guard against empty slices / zero gradients
  • Summary cell uses locals().get(...) so it renders even if earlier cells raised

Test plan

  • Re-run the notebook against a populated case directory

Generated with Claude Code

drcole17 and others added 2 commits April 23, 2026 18:09
- interface_thickness_x_ray: raise RuntimeError (not bare ValueError) when the x-ray mask covers no cells
- x-ray plot, derived-thickness, and time-series cells catch (RuntimeError, ValueError) and guard against empty slices / zero gradients
- Summary cell uses locals().get() so it renders even if earlier cells raised

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@drcole17 drcole17 merged commit 1915285 into master Apr 23, 2026
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