Skip to content

Fix standalone execution of basic utility examples - #1055

Merged
lmoresi merged 1 commit into
underworldcode:developmentfrom
ss2098:fix/basic-examples-standalone
Nov 12, 2026
Merged

lmoresi merged 1 commit into
underworldcode:developmentfrom
ss2098:fix/basic-examples-standalone

Conversation

@ss2098

@ss2098 ss2098 commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Fix four basic Underworld3 examples by adding missing imports and parameters, correcting vector magnitude calculation for TensorMeshArrayView, and replacing annulus.N with annulus.X. All nine basic examples completed successfully in local testing. MeshVariablePoints.py still produces unrelated PyVista cleanup warnings. No solver or packaging changes are included.

@ss2098
ss2098 requested a review from lmoresi as a code owner November 11, 2026 07:06
@lmoresi
lmoresi merged commit 64b9377 into underworldcode:development Nov 12, 2026
10 checks passed

lmoresi commented Nov 12, 2026

Copy link
Copy Markdown
Member

Thank you for this, @ss2098. It is merged to development.

The four examples did use names they never defined, and annulus.N is the coordinate-system object rather than the coordinates, so annulus.X is the right fix. Our review found the changes correct as submitted and asked for nothing more. One small note for the future: sphere.N further down geometric_directions_demo.py has the same slip. It does not raise, but it unpacks the basis vectors rather than the coordinates.

Examples that run standalone are what new users meet first, so this is a useful contribution. Apologies that it sat for a few days before anyone looked.

Underworld development team with AI support from Claude Code


Generated by Claude Code

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