-
Notifications
You must be signed in to change notification settings - Fork 46
Mv fix regrid leak logging #202
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
base: main
Are you sure you want to change the base?
Conversation
…() to work properly with beam (for reasons I don't totally understand).
alxmrs
left a 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.
Mostly nits. Thanks for your changes!
weather_mv/loader_pipeline/regrid.py
Outdated
| logger.debug(f'Located temporary directories to remove: {cache_dir} [{file_regrid_label!r}].') | ||
| shutil.rmtree(cache_dir) | ||
| logger.debug(f'Temporary directories removed [{file_regrid_label!r}].') | ||
| os.makedirs(cache_dir) | ||
| logger.debug(f'Re-building empty temporary directory structure [{file_regrid_label!r}].') |
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 think these are too many debug messages. Won't it pollute the logs?
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.
Yea I'll thin them out after I determine whether we actually even need this code for clearing the temp directories.
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.
sgtm
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 thinned them out, though this block may be removed.
alxmrs
left a 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.
LGTM
Added extra logging.