Skip to content

fix gdir size with new params cross-ref - #1979

Merged
fmaussion merged 8 commits into
OGGM:masterfrom
fmaussion:gdir_size
Aug 10, 2026
Merged

fmaussion merged 8 commits into
OGGM:masterfrom
fmaussion:gdir_size

Conversation

@fmaussion

Copy link
Copy Markdown
Member

Don't pickle the cfg.PARAMS snapshot with every flowline

Flowline.settings carried a shallow copy of cfg.PARAMS, which holds
intersects_gdf - a region-wide table. It was serialized into
model_flowlines.pkl once per glacier, up to five times per glacier
across levels 3 to 5, making L5 directories of dense regions such as
RGI60-19 up to 11x bigger than in v1.6.3.

Flowline, FlowlineModel and ModelSettings now drop that snapshot before
pickling and rebuild it from cfg.PARAMS on unpickling, as
GlacierDirectory already does since #1967

@fmaussion

Copy link
Copy Markdown
Member Author

I note that #1908 would have probably prevented this from happening - probably worth prioritising this?

@fmaussion
fmaussion merged commit 18af7bb into OGGM:master Aug 10, 2026
30 checks 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