Repository navigation
fix(modelling): onlap regions, model.save, intrusions list, map2loop supergroups, fault-unit matrix - #414
Merged
Conversation
…dded Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… surfaces by unit Iterate the stratigraphic groups, keep the stratigraphic_surfaces flag, and name each data file after its data set so files do not overwrite. get_stratigraphic_surfaces(units=...) now returns only those units. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Also adds the regression tests for model.save() and for the units filter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…opology Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes five small bugs found in a repo audit. Each has a regression test that fails without the fix.
add_onlap_unconformitydeleted the feature's existing regions (feature.regions = []). An onlap series was then no longer cut by the younger erosional unconformities above it. The line is removed.model.save()crashed with its default arguments. It loopedfor group in model.stratigraphic_column, which raisedKeyError, after it had already written some files. It now loops overget_groups(). Thestratigraphic_surfacesflag is no longer overwritten. Data files are named after each feature, so they no longer overwrite each other.get_stratigraphic_surfaces(units=[...])now returns only the units you ask for.model.intrusionswas always empty. It compared an IntEnum with the string"intrusion".Map2LoopProcessornamed every supergroupsupergroup_0. The counter was reset on every line. Checked against a real map2loopsuper_groups.csv, which has one supergroup per line.FaultTopology.get_fault_stratigraphic_unit_relationshipsalways returned zeros. The(group, unit)pairs were unpacked in the wrong order.Review notes, not changed here (all but the first were there before this branch):
add_onlap_unconformitytwice on one feature now keeps both inverse regions. Calling it twice was already broken before this branch.get_stratigraphic_surfaces(units=["unknown"])returns[]with no warning.save()to.jsonor.csvfails.Tests: 65 passed and 2 skipped in the touched test files (test_geological_model, test_fault_topology, test_data_processor, test_unconformity_truncates_faults, test_unconformity_feature, test_exporters).
save()was checked by hand for pkl, vtk and geoh5. Reviewed by a second agent: no important findings.🤖 Generated with Claude Code