Skip to content

Feat/save manual foliations - #123

Merged
lachlangrose merged 3 commits into
mainfrom
feat/save-manual-foliations
Sep 29, 2026
Merged

lachlangrose merged 3 commits into
mainfrom
feat/save-manual-foliations

Conversation

@lachlangrose

Copy link
Copy Markdown
Member

No description provided.

The pickled model keeps the solved manual foliations, but
GeologicalModelManager.manual_foliations was not saved. After a load,
Initialize Model cleared the model features and could not build these
foliations again. save_state now writes the foliation specs to the JSON
state file, and load_state reads them again.
The data manager now watches the layers that the model reads data from
(basal contacts, fault traces, structural orientations and the layers of
user-added foliations). When one of them changes, the Geological Model
tab shows the changed layers and an "Update Model Data" button.

The button reads the changed layers again and puts the new data into the
features that are already in the model, so the changes made to those
features stay (Initialize Model builds every feature again). A changed
fault trace, or a group that gets or loses all of its data, cannot go
into the current model; the model status then asks for Initialize Model.

Initialize Model now also reads the changed layers again before it
builds the model.
@lachlangrose
lachlangrose merged commit fc572fe into main Sep 29, 2026
4 checks passed
@lachlangrose
lachlangrose deleted the feat/save-manual-foliations branch September 29, 2026 06:15
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