Repository navigation
Commit 03a6e58
authored
fix: coordinate and fault-frame correctness, stage S1 (spec 005) (#392)
* chore(lint): fix baseline Python checks
* docs(spec): add plan and S1 tasks for 005-coordinate-frame-correctness
* test(geometry): add S1 analytic fixtures and transform checks
* feat(geometry): add rigid rotation validation and S1 regressions
* fix(geometry): correct review finding of wave 2
* feat(geometry): validate rigid transforms and repair fault frame setup (wave 3)
T005: validate the local transform and add BoundingBox.local_enclosure.
T006: repair the support resize node count and validate rotation_xy.
Regenerate the structured support golden file (27 resize values).
T008: add the public world/local conversion methods.
T012: keep the requested buffer, the 3D inferred centre, the in-plane
slip and one extent row at the centre.
Correct two test setups (T003 dimensions, T011 slip row scale).
* feat(modelling): sample reference features at world points (wave 4)
T009: sample add_inequality_feature at world nodes.
T010: sample orthogonal and equality references at world points, install
target-local rows, count excluded rows, use the local enclosure for the
support, and expand the support for restored points in world space.
Correct the T007 affine residual test: compute the exact field without
cancellation at large world coordinates. The tolerance is not changed.
* fix(modelling): keep the fault centre and buffer in the fault factory (wave 5)
T013: do not project an explicit fault centre, because it is a world
point (FR-010). Do not replace the requested fault buffer with the
default 0.2 buffer.
Correct the T011 test setup: give the SC-003 CG settings through
solver_kwargs. The builder ignored the top-level values.
* docs(compat): record S1 golden review and migration notice (wave 6)
T015: record the golden review. test__fault_builder.py encodes no S1
defect. Record the 27 changed values of the structured support golden
file.
T016: add the S1 migration notice to COMPAT.md.
* docs(spec): record S1 pre-fix evidence, results, rollback and run time (wave 7)
T017: fill verification.md with the pre-fix failures at ebc7c69, the post-fix results, the backend matrix, the rollback check and the S1 test time.
* fix(modelling): correct spec review findings
Copy the fault normal and slip so the array of the caller does not change (T012).
Use the world fault centre in FaultSegment.fault_ellipsoid with no second conversion (T013).
Add regression tests for both (T011 file).
Keep only the 27 FR-014 changes in the structured support golden file (T006).
Correct the FR ranges in the verification.md titles (T017).
* docs(spec): mark 005 stage S1 as implemented
Record the final checks and the open minor review findings in run-state.json.
* docs(spec): record decisions after stage S1 of 005
Put the anisotropy reset (#394) and the ignored solver settings (#393) out of scope. Close OP2: the R2 and R5 matrix stays in the default pytest run.
* test(interp): loosen golden gradient tolerance for macOS arm64
The gradient amplifies solver noise by about 1/h, so it needs a looser
limit than the value. Report max |dgrad| in the failure message.1 parent a0e8209 commit 03a6e58
24 files changed
Lines changed: 2928 additions & 129 deletions
File tree
- LoopStructural/modelling
- core
- features
- builders
- fault
- packages
- loop_common
- src/loop_common/geometry
- tests
- data
- loop_interpolation
- src/loop_interpolation
- tests/golden
- specs
- 005-coordinate-frame-correctness
- tests
- fixtures
- unit/modelling
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
751 | | - | |
752 | | - | |
753 | 751 | | |
754 | 752 | | |
755 | 753 | | |
| |||
768 | 766 | | |
769 | 767 | | |
770 | 768 | | |
771 | | - | |
772 | | - | |
773 | 769 | | |
774 | 770 | | |
775 | 771 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
105 | | - | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
119 | 125 | | |
120 | 126 | | |
121 | 127 | | |
| |||
129 | 135 | | |
130 | 136 | | |
131 | 137 | | |
132 | | - | |
| 138 | + | |
133 | 139 | | |
134 | 140 | | |
135 | 141 | | |
| |||
148 | 154 | | |
149 | 155 | | |
150 | 156 | | |
151 | | - | |
| 157 | + | |
152 | 158 | | |
153 | 159 | | |
154 | 160 | | |
| |||
289 | 295 | | |
290 | 296 | | |
291 | 297 | | |
| 298 | + | |
| 299 | + | |
292 | 300 | | |
293 | 301 | | |
294 | 302 | | |
| |||
299 | 307 | | |
300 | 308 | | |
301 | 309 | | |
302 | | - | |
303 | | - | |
304 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
305 | 319 | | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
310 | 328 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
315 | 337 | | |
316 | 338 | | |
317 | 339 | | |
318 | 340 | | |
319 | 341 | | |
320 | 342 | | |
321 | | - | |
322 | | - | |
323 | | - | |
| 343 | + | |
324 | 344 | | |
325 | 345 | | |
326 | 346 | | |
327 | 347 | | |
328 | 348 | | |
329 | 349 | | |
330 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
331 | 354 | | |
332 | | - | |
| 355 | + | |
333 | 356 | | |
334 | 357 | | |
335 | 358 | | |
| |||
340 | 363 | | |
341 | 364 | | |
342 | 365 | | |
343 | | - | |
344 | | - | |
345 | | - | |
| 366 | + | |
346 | 367 | | |
347 | 368 | | |
348 | 369 | | |
| |||
352 | 373 | | |
353 | 374 | | |
354 | 375 | | |
355 | | - | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
356 | 379 | | |
357 | 380 | | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
364 | 399 | | |
365 | 400 | | |
366 | | - | |
| 401 | + | |
367 | 402 | | |
368 | | - | |
| 403 | + | |
369 | 404 | | |
370 | 405 | | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
377 | 418 | | |
378 | 419 | | |
379 | 420 | | |
380 | 421 | | |
381 | 422 | | |
382 | | - | |
383 | | - | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
384 | 436 | | |
385 | 437 | | |
386 | 438 | | |
| |||
395 | 447 | | |
396 | 448 | | |
397 | 449 | | |
| 450 | + | |
398 | 451 | | |
399 | 452 | | |
400 | 453 | | |
| |||
404 | 457 | | |
405 | 458 | | |
406 | 459 | | |
407 | | - | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
408 | 463 | | |
409 | 464 | | |
410 | 465 | | |
411 | 466 | | |
412 | | - | |
| 467 | + | |
413 | 468 | | |
414 | 469 | | |
415 | 470 | | |
| 471 | + | |
416 | 472 | | |
417 | 473 | | |
418 | 474 | | |
| |||
538 | 594 | | |
539 | 595 | | |
540 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
541 | 612 | | |
542 | 613 | | |
543 | 614 | | |
| |||
596 | 667 | | |
597 | 668 | | |
598 | 669 | | |
599 | | - | |
600 | | - | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
601 | 674 | | |
602 | 675 | | |
603 | 676 | | |
| |||
704 | 777 | | |
705 | 778 | | |
706 | 779 | | |
707 | | - | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
708 | 783 | | |
709 | 784 | | |
710 | 785 | | |
| |||
731 | 806 | | |
732 | 807 | | |
733 | 808 | | |
734 | | - | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
735 | 812 | | |
736 | 813 | | |
737 | 814 | | |
| |||
0 commit comments