Repository navigation
feat: model step and direct interpolation (usability plan, phase 4) - #135
Open
lachlangrose wants to merge 2 commits into
Open
lachlangrose wants to merge 2 commits into
lachlangrose wants to merge 2 commits into
Conversation
Phase 4 of the usability plan. - One primary button replaces Initialize Model, Solve Model and Update Model Data. Its text and action come from the model state. The problems of all steps show above the feature list. - A build calculates out-of-date basal contacts and thicknesses first, on a background task with progress. With "Calculate from geology polygons" the model reads the extracted contacts directly; the project layer is for display only. - Start choice: build from a geological map, or interpolate surfaces from constraints (hides steps 2 and 3). Saved with the state. - Constraint types: value, interface, gradient/normal, tangent, form line, inequality and pairwise inequality, each with a weight and a Z source (layer, DEM or constant). - Detach a generated feature to keep a fixed copy of its data. Rows added to a generated feature are now used in the build. - Preview one feature as isolines on the map. - Add Fault from a centre, strike, dip and size.
lachlangrose
added this pull request to stack #139
October 7, 2026 14:06
This branch has not been deployed
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.
Phase 4 of the usability plan. This PR is stacked on #134 (phase 3), so the base is
feat/step-based-dock. Merge #134 first.What changes
steps/build_plan.py). The problems of all visible steps show above the feature list.main/derived_refresh.py). A failure stops the build and shows the error. With "Calculate from geology polygons" the model reads the extracted contacts directly. The project layer is for display only.main/constraints.py). All interpolators take the same types, so none are hidden.main/preview.py). Usescontourpy, which comes with matplotlib.main/parametric_fault.py). It replaces the old unusedadd_fault_dialog.uiwith a dialog in code.Not tested in QGIS
QGIS was not available where I wrote this. These are not run:
test_detach_feature.py,test_parametric_fault.py, and additions totest_manual_foliations.pyandtest_derived_data_state.py.The unit tests pass (219) and ruff is clean on the new files. Please run the QGIS tests in CI and try the workflow by hand.
Things to check
contourpyis in the QGIS Python.Limits
🤖 Generated with Claude Code