summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2019-12-02 20:08:45 +0200
committerSebastian Berg <sebastian@sipsolutions.net>2019-12-02 12:08:45 -0600
commit7b2d968d5a4730489d9e9148afe2277b1bc32477 (patch)
tree3da8067d704a681cc48dfc372e3ed855d6cb1d0b /doc
parent48481c6e2ed958cd0d30cc0e8d5611c8e68f7df3 (diff)
downloadnumpy-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.rst6
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.