Skip to content
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

Cleanup temporary files #199

Closed
wants to merge 1 commit into from
Closed

Cleanup temporary files #199

wants to merge 1 commit into from

Conversation

emfdavid
Copy link
Contributor

Use context manager to cleanup temporary files.
Related to #194
Still investigating other possible issues.
There are also temporary file issues in cfgrib.messages and eccodes.messages.

Use context manager to cleanup temporary files.
Related to fsspec#194 
Still investigating other possible issues.
There are also temporary file issues in cfgrib.messages and eccodes.messages.
@martindurant
Copy link
Member

See also #198 , although this is simple enough and useful to go in right away.

@emfdavid
Copy link
Contributor Author

See also
ecmwf/cfgrib#306
ecmwf/eccodes-python#65

@martindurant
Copy link
Member

There are also temporary file issues in cfgrib.messages and eccodes.messages

Do you mean, that when we make a message object from bytes, actually is makes a temporary file anyway? Ghastly!

@emfdavid
Copy link
Contributor Author

Do you mean, that when we make a message object from bytes, actually is makes a temporary file anyway? Ghastly!

The temp files that cfgrib/eccodes makes are foobar.idx files... they do appear to be one to one with the messages... but I don't claim to understand how it works or what they contain. The code is mostly duplicated between cfgrib.messages and eccodes.messages. I am not sure why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants