Skip to content

ENH: savez: temporary file alongside with target file and improve exception message upon IOError - #7133

Merged
njsmith merged 3 commits into
numpy:masterfrom
yarikoptic:bf-savez
Feb 9, 2016
Merged

njsmith merged 3 commits into
numpy:masterfrom
yarikoptic:bf-savez

Conversation

@yarikoptic

Copy link
Copy Markdown
Contributor

Should fully resolve #5336 -- for output of large files temporary files would be created alongside with target ones, so it would be logical to expect sufficient amount of storage available (unlike under TEMPDIR). Also error message would carry the filename of the tempfile in question which could better direct user toward possible problems on the target partition.

I haven't tested it locally, neither looked into where to provide such a test -- let's see first if travis says Ok. If testing desired -- point to location where to provide one. Cheers!

@yarikoptic

Copy link
Copy Markdown
Contributor Author

not sure why appveyor tests didn't run, but otherwise -- ready for review ;)

@yarikoptic

Copy link
Copy Markdown
Contributor Author

bzz bzz -- noone is interested to review/feedback?

@njsmith

njsmith commented Feb 9, 2016

Copy link
Copy Markdown
Member

LGTM -- Thanks Yaroslav!

njsmith added a commit that referenced this pull request Feb 9, 2016
savez: temporary file alongside with target file and improve exception message upon IOError
@njsmith
njsmith merged commit 5531371 into numpy:master Feb 9, 2016
@charris charris changed the title savez: temporary file alongside with target file and improve exception message upon IOError ENH: savez: temporary file alongside with target file and improve exception message upon IOError Nov 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Saving large array fails with savez_compressed() but works with save()

3 participants