Skip to content

ENH: Better error message for savetxt when X.ndim > 2 or X.ndim = 0#9726

Merged
charris merged 1 commit into
numpy:masterfrom
NelleV:better_error_message
Sep 20, 2017
Merged

ENH: Better error message for savetxt when X.ndim > 2 or X.ndim = 0#9726
charris merged 1 commit into
numpy:masterfrom
NelleV:better_error_message

Conversation

@NelleV
Copy link
Copy Markdown
Contributor

@NelleV NelleV commented Sep 20, 2017

np.savetxt does not support saving arrays of dimension 0 or higher than 2.
This pull request improves the message of the error raised.

Before this patch, the error message was something like: TypeError: Mismatch between array dtype ('float64') and format specifier ('%.18e %.18e')

savetxt does not support saving arrays of dimension 0 or higher than 2.
This pull request improves the message of the error raised.
@charris charris changed the title ENH Better error message for savetxt when X.ndim > 2 (or X.ndim = 0) ENH: Better error message for savetxt when X.ndim > 2 or X.ndim = 0 Sep 20, 2017
@charris charris merged commit e847a56 into numpy:master Sep 20, 2017
@charris
Copy link
Copy Markdown
Member

charris commented Sep 20, 2017

Thanks Nelle.

@NelleV
Copy link
Copy Markdown
Contributor Author

NelleV commented Sep 20, 2017

Thanks!

@NelleV NelleV deleted the better_error_message branch December 6, 2017 20:05
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.

2 participants