-
Notifications
You must be signed in to change notification settings - Fork 176
Model-centric refactoring to reduce dataset creation #2646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
f5eb442
Typing
VeckoTheGecko 735e1c0
Restructure to introduce models
VeckoTheGecko e03ccf7
Refactor from_sgrid_conventions to model
VeckoTheGecko f198994
Fix typing
VeckoTheGecko aaf6846
Refactor from_ugrid_conventions to model
VeckoTheGecko 915b0cb
Fix typing
VeckoTheGecko 7787c86
Add FieldSet.models
VeckoTheGecko af1dbf5
Move "time_interval" to model
VeckoTheGecko 035bd3f
Update Model ABC
VeckoTheGecko 9e24a14
Update Field init to take model
VeckoTheGecko b69402a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 915b0b6
Add XGCM adapter
VeckoTheGecko 9685ddf
Remove xgcm constructors
VeckoTheGecko 23bc2d4
Update _transpose_xfield_data_to_tzyx to work with SGRID metadata
VeckoTheGecko 82f2001
Define SGRID data pre-processing
VeckoTheGecko f222d4b
Create grid object within StructuredModel
VeckoTheGecko 108d3b2
Allow for time dimension size 1
VeckoTheGecko 065c96d
Disable assert_all_field_dims_have_axis check
VeckoTheGecko 538477d
New interpolator API
VeckoTheGecko f1799ac
Update interpolators to use new API
VeckoTheGecko 1345f6e
Enable adding of fieldsets
VeckoTheGecko b87fae4
Add assert_compatible_fieldsets
VeckoTheGecko 13644ea
Fix test suite
VeckoTheGecko 5569031
Define how to set interpolators
VeckoTheGecko 54674c6
Fix test suite
VeckoTheGecko f2ef7ce
Merge
VeckoTheGecko 18e76d8
Update test suite
VeckoTheGecko bb8c0a5
Fix test suite
VeckoTheGecko a55fe97
Enable constant field tests
VeckoTheGecko 0b2b147
Disable reprs
VeckoTheGecko 2eaf144
Refactor constant field logic to use dedicated model
VeckoTheGecko cc52d2c
Fix constant field logic
VeckoTheGecko 059f5c5
Enable unstructured tests
VeckoTheGecko d896ad6
Update unstructured grid interpolators
VeckoTheGecko 73077b7
Update unstructured FieldSet ingestion in tests
VeckoTheGecko 941c9b1
Update comments
VeckoTheGecko ad7eb5a
Fix test_time1D_field
VeckoTheGecko f278ed9
Merge remote-tracking branch 'upstream/main' into restructure
VeckoTheGecko da46ba7
Update test after merge with main
VeckoTheGecko 7173dc0
Fixes after merge
VeckoTheGecko cc45cd1
Review feedback
VeckoTheGecko 863328e
Update ValueError messages
VeckoTheGecko 5646f15
Add TODO
VeckoTheGecko 6057468
Review feedback
VeckoTheGecko 9e4e34c
Remove zero interpolators
VeckoTheGecko 9519503
Fix typing error
VeckoTheGecko 4e02d1f
Merge with upstream/main
VeckoTheGecko b025d6d
Rename Model to ModelData
VeckoTheGecko aa887ef
Merge branch 'main' into restructure
VeckoTheGecko c617fc5
Review feedback
VeckoTheGecko 7c46987
DOCS: Disable running of explanation_kernelloop.md
VeckoTheGecko 0609873
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this choice of -1? Don't we run the same risk of accidentally wrapping negative indices as in #2629?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was already in
main.AFAICT the caching of ei isn't even working (searching for
.igrid =gives no meaningful results). I already suspected this was the case, hence why I was mentioning before that we should have explicit tests for this as part of our release roadmap.For another issue/pr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm.. I'll look into this grid index caching issue today.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome - thanks for picking this up @fluidnumericsJoe !