Repository navigation
make period_states independent of object model - #554
Merged
Merged
Conversation
period_state.period_states(blocks, mode, nper, shapes, active, index) works on
{kper: {tag: value}} alone. Package.period_states builds the blocks (via
_period_dict) and the NetCDF export and period_array(fill_forward=True) both
go through it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
mjreno
approved these changes
Nov 20, 2026
Package.period_states skipped a field it couldn't size, so the export failed later with a KeyError. Raise the old "period shape isn't known" error for a field asked for or given. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
Good point, done |
wpbonelli
marked this pull request as ready for review
November 20, 2026 14:40
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.
Tentative, pending discussion with @mjreno. Follow-up to #552.
period_state.period_states(blocks, mode, nper, shapes, active, index)takes{kper: {tag: value}}only, so it doesn't depend on the object model.Package.period_states()builds the blocks through_period_dict. The NetCDF export andPackage.period_array(fill_forward=True)both call it, so there is one implementation of MF6's period regimes.period_arrayon grid packages now follows MF6's grid regime. For example, an empty block clears aux as well. Time-array series still raise there.🤖 Generated with Claude Code