diff options
author | Matti Picus <matti.picus@gmail.com> | 2019-12-02 20:08:45 +0200 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2019-12-02 12:08:45 -0600 |
commit | 7b2d968d5a4730489d9e9148afe2277b1bc32477 (patch) | |
tree | 3da8067d704a681cc48dfc372e3ed855d6cb1d0b /doc | |
parent | 48481c6e2ed958cd0d30cc0e8d5611c8e68f7df3 (diff) | |
download | numpy-7b2d968d5a4730489d9e9148afe2277b1bc32477.tar.gz |
BUG: warn when saving dtype with metadata (#14994)
Address gh-14142 for the 1.18 release: warn when saving a dtype with metadata that cannot be loaded.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/upcoming_changes/14142.change.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/14142.change.rst b/doc/release/upcoming_changes/14142.change.rst new file mode 100644 index 000000000..9660f2f90 --- /dev/null +++ b/doc/release/upcoming_changes/14142.change.rst @@ -0,0 +1,6 @@ +Warn when saving a dtype with metadata +-------------------------------------- +A ``UserWarning`` will be emitted when saving an array via `numpy.save` with +``metadata``. Saving such an array may not preserve metadata, and if metadata +is preserved, loading it will cause a ``ValueError``. This shortcoming in save +and load will be addressed in a future release. |