-
Notifications
You must be signed in to change notification settings - Fork 38
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
Save all files in a task at the same time to avoid recomputing intermediate results #2522
Merged
Merged
Changes from 14 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
4599bf6
Various improvements to lazy preprocessor functions
bouweandela 692ef21
Add import
bouweandela 773e6e2
Propagate compute argument to save for multi model functions
bouweandela 5b964c2
Add log message and fix test
bouweandela 8ccdc0e
Use ruff formatting
bouweandela a657567
Merge remote-tracking branch 'origin/main' into delayed-save
bouweandela aabf7b3
Fix style issue
bouweandela 76b43d0
Merge branch 'main' of github.com:ESMValGroup/ESMValCore into delayedβ¦
bouweandela 4f57e68
Add tests
bouweandela 97a894e
Copy iris docstring for more visibility
bouweandela c8104e4
Pass compute arg to iris save function
bouweandela d4567a6
Merge branch 'main' of github.com:ESMValGroup/ESMValCore into delayedβ¦
bouweandela 709dd05
Merge branch 'main' into delayed-save
valeriupredoi 85725a9
Merge branch 'main' into delayed-save
bouweandela c4f8f8d
Add progress bars
bouweandela bc15877
Improve configuration
bouweandela 6a82e04
Add rich as dependency
bouweandela 3f3f533
Merge branch 'main' of github.com:ESMValGroup/ESMValCore into delayedβ¦
bouweandela fdde677
Add default logging configuration
bouweandela 808b56e
Merge branch 'main' of github.com:ESMValGroup/ESMValCore into delayedβ¦
bouweandela a5f8f8f
Fix case where save is called with compute=True for all files
bouweandela ef87f10
Improve type hints
bouweandela 2162dc5
Longer test
bouweandela 2e01812
Improve test coverage
bouweandela acfc3ab
Fix code style issues
bouweandela 9f3d784
Make Codacy happy
bouweandela bd32302
Merge branch 'main' of github.com:ESMValGroup/ESMValCore into delayedβ¦
bouweandela c70dfe2
Improve docs
bouweandela 10d253f
Improve bars and default interval
bouweandela 98ad5e4
Merge branch 'main' of github.com:ESMValGroup/ESMValCore into delayedβ¦
bouweandela ec3318c
Add option to disable progress info and improve docs
bouweandela 866c216
Improve test coverage
bouweandela e60520a
Simplify distributed task bar
bouweandela 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 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 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 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 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 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.
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.
maybe tweak it via
tqdm
which is a lot more progress-y bar-y? See tqdm/tqdm#278 @schlunma have a look at that tooThere 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.
BTW no need for notebooks, see https://stackoverflow.com/questions/64982455/format-dask-diagnostics-progress-bar
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.
tqdm
s progress bars look nice, but didn't work for me when I tried to use them to track progress for the ESGF downloads a few years ago. The maintainers of that package are not very responsive to the issue either: tqdm/tqdm#1272 (comment). I would be happy to try again though.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.
let's see if it does the trick, can't be any worse than that picture Manu posted in #2522 (comment) π€£
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.
I implemented some fancy progress bars for you using
rich