-
Couldn't load subscription status.
- Fork 43
Expand Dataset.from_files so it works properly with derived variables
#2777
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
Open
schlunma
wants to merge
72
commits into
main
Choose a base branch
from
from_files_with_derived_vars
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
4b989d3
Remove all new features, just keep no-op changes
schlunma b0c44f6
Further no-op changes
schlunma 1dd5671
force_derivation=True without derive=True does not make sense
schlunma 8989549
Add tests
schlunma 1f6dfa3
Add type hints to check.py
schlunma b6a6651
Added type hints for recipe.py
schlunma 6793e0c
Added type hints for to_datasets.py
schlunma 878e310
Added type hints for dataset.py
schlunma be6e55d
Add type hints to local.py
schlunma b1caf65
Add type hints to preprocessor/__init__.py
schlunma 19dbff9
Add type hints to compare_with_refs.py
schlunma d8ea7d9
Add type hints to _derive/__init__.py
schlunma 367bfe7
Add type hints to some derive functions
schlunma 5bbe6ce
Add type hints to _regrid.py
schlunma d10de1e
Make new dataset methods private
schlunma 7323866
Small fix
schlunma 3ab2cdf
Fix test
schlunma 099349f
Fix mock
schlunma 86b308b
100% test coverage
schlunma 369a811
Clean doc
schlunma c2a3d81
100% diff coverage
schlunma a3dab12
Try to please Codacy
schlunma 001eafa
Make tests work without ESMValTool installation
schlunma debd589
100% diff coverage for real
schlunma c3df13e
Added Dataset.input_datasets
schlunma e794817
Shorter code
schlunma 7c1bfd7
Merge remote-tracking branch 'origin/type_hints_derive' into from_filβ¦
schlunma b971d50
Dataset.set_version can handle derived variables now
schlunma f6b6d22
Dataset._input_datasets is always list[Dataset]
schlunma 1f4de86
Make changes fully backwards-compatible
schlunma 8ee3e04
Merge remote-tracking branch 'origin/type_hints_derive' into from_filβ¦
schlunma c6d303b
Make Dataset.from_files work with derived variables (no globs yet)
schlunma 40147fb
Added test for derived variable with glob
schlunma 6ec04fc
Better var name
schlunma 58b12d1
Merge remote-tracking branch 'origin/type_hints_derive' into from_filβ¦
schlunma ea3386e
Update esmvalcore/dataset.py
schlunma dc7e122
Merge remote-tracking branch 'origin/main' into type_hints_derive
schlunma 73ddc24
Merge remote-tracking branch 'origin/type_hints_derive' into from_filβ¦
schlunma efa2ac1
Add further tests for Dataset.from_files with globs
schlunma f9c47a9
Update _dataset_from_files to new Dataset.from_files
schlunma 3de7bc8
Move _fix_cmip5_fx_ensemble to _get_preprocessor_products
schlunma 77fd1e8
Make _derivation_necessary work with timerange globs
schlunma 312fafa
Fix bug for non-derived variables
schlunma e8c7bf2
Use new Dataset.from_files in code
schlunma 6cdd714
Added test to check differing timeranges
schlunma 9057cf9
Make everything work with glob in timerange
schlunma ebc82ba
Differing timeranges are caught by _get_all_available_datasets
schlunma 58dd666
Use ABCs and other type hint suggestions from @bouweandela
schlunma b1c66fd
Ruff fixes
schlunma 6be3169
Use type aliases
schlunma 5744b0d
Do not change minimal facets
schlunma cbcf37b
Used more type aliases
schlunma 14e8b5e
Fix typo in func name
schlunma ecbecc6
Make mypy happy
schlunma d7c73aa
Use type aliases in regrid.py
schlunma 69e0502
Valid return type in docstring
schlunma 6eedca2
Avoid Coord
schlunma 62c1996
Correct type hint
schlunma 8f2f179
Assign new variable for new type
schlunma 7bc1bee
Raise error for invalid type
schlunma 62067fc
Fail if invalid types given
schlunma b12df84
Restore _pattern_filter
schlunma 22ab6e7
Better _special_name_to_dataset
schlunma 36724ef
Do not cast to str
schlunma 6ad2fef
Use int variables
schlunma 3ce06fc
Merge remote-tracking branch 'origin/type_hints_derive' into from_filβ¦
schlunma 1116641
Merge remote-tracking branch 'origin/main' into from_files_with_derivβ¦
schlunma 74983d5
Add doc
schlunma acaf9fd
Expand notebook
schlunma f6e531b
Fix doc build
schlunma 30b6f53
Update doc
schlunma 1cdfef2
Better derivation example
schlunma 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
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.
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.
Uh oh!
There was an error while loading. Please reload this page.