Skip to content

refactor: extract ModelSerializer from GeologicalModel - #305

Merged
lachlangrose merged 1 commit into
split/05-fault-proximity-fixfrom
split/06-extract-model-serializer
Aug 14, 2026
Merged

refactor: extract ModelSerializer from GeologicalModel#305
lachlangrose merged 1 commit into
split/05-fault-proximity-fixfrom
split/06-extract-model-serializer

Conversation

@lachlangrose

Copy link
Copy Markdown
Member

Split out of #298 / #299. PR 6 of 9 in the stack — depends on #304.

First of four sequential extractions breaking GeologicalModel apart. Moves serialization logic (save/load) out of geological_model.py into a new _model_serializer.py.

GeologicalModel mixed recipe/pickle I/O in with feature-construction
orchestration, evaluation, and export logic (2580 lines total). Move
the recipe/JSON and dill/pickle serialization logic into a standalone
ModelSerializer, keeping every GeologicalModel public method as a
thin unchanged-signature wrapper so the CI-enforced stable API
surface (API.md, tests/unit/test_public_api_contract.py) is
unaffected.

(cherry picked from commit 404ce4b)
@lachlangrose
lachlangrose force-pushed the split/06-extract-model-serializer branch from a4c9ee2 to 82ace86 Compare August 14, 2026 11:29
@lachlangrose
lachlangrose merged commit 155d8f1 into split/01-intrusions-fix Aug 14, 2026
1 check passed
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.

1 participant