Repository navigation
Commit 997f022
authored
feat: model step and direct interpolation (usability plan, phase 4) (#135)
* feat: model step with one build button and direct interpolation
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.
* style: fix the ruff errors in the step bar
- Make the step titles with dict().
- Rename the unused loop variable.
* fix: give the new contacts to the thickness step of a build
- When the contacts and the thicknesses are calculated together, the
thickness calculation uses the new contacts, not the out-of-date layer.
- The background thread does not change the data manager. finish() puts
the contacts into the model on the GUI thread.
- Read the inputs with basal_contacts_inputs() and thickness_inputs()
without arguments. #134 changed these functions, so the build failed.
- qgsLayerToGeoDataFrame accepts a GeoDataFrame.
- Add unit tests for the order and for the thread rule.
* fix: name the fault sizes from the slip, as LoopStructural uses them
LoopStructural puts the major axis along cross(normal, slip) and the
intermediate axis along the slip. The dialog said along strike and down
dip, which is correct only for dip slip. The labels are now "across the
slip" and "along the slip". Add axis_vectors() and tests for the axes.
* fix: added rows of a generated feature
- A row that the user adds to or deletes from a generated feature makes
the model stale, so that the next action is a rebuild.
- A bad added row is left out, and the build tells the user. Before, one
bad row removed all the added rows of the feature.
- Inequality and Pairwise Inequality have no weight, because
LoopStructural ignores it.
- Test the save and load of detached data through JSON.1 parent 4308354 commit 997f022
27 files changed
Lines changed: 3336 additions & 382 deletions
File tree
- docs/development
- loopstructural
- gui/modelling
- geological_model_tab
- feature_details_panel
- steps
- main
- vectorLayerWrapper
- tests
- qgis
- unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
308 | 308 | | |
309 | | - | |
310 | | - | |
| 309 | + | |
| 310 | + | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
| 314 | + | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
| 317 | + | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | | - | |
| 323 | + | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
367 | | - | |
368 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
369 | 370 | | |
370 | 371 | | |
371 | 372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
2 | 12 | | |
3 | | - | |
4 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
5 | 22 | | |
6 | 23 | | |
7 | 24 | | |
8 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
9 | 32 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
15 | 138 | | |
16 | 139 | | |
17 | 140 | | |
| 141 | + | |
18 | 142 | | |
19 | 143 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 144 | | |
32 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
33 | 150 | | |
This file was deleted.
0 commit comments