From 77c73e208b55a9ce43293f0cdb7b2a667c6d2f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Tue, 9 May 2023 19:48:12 +0200 Subject: [PATCH] Fix deprecated storeChunk APIs in first read/write examples (#1435) --- docs/source/usage/firstread.rst | 5 ++--- docs/source/usage/firstwrite.rst | 15 ++++++--------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/docs/source/usage/firstread.rst b/docs/source/usage/firstread.rst index f27e3c595b..673f69acc4 100644 --- a/docs/source/usage/firstread.rst +++ b/docs/source/usage/firstread.rst @@ -347,12 +347,11 @@ C++17 .. code-block:: cpp - // destruct series object, - // e.g. when out-of-scope + series.close() Python ^^^^^^ .. code-block:: python3 - del series + series.close() diff --git a/docs/source/usage/firstwrite.rst b/docs/source/usage/firstwrite.rst index d339d00ad1..3361214926 100644 --- a/docs/source/usage/firstwrite.rst +++ b/docs/source/usage/firstwrite.rst @@ -297,11 +297,9 @@ C++17 .. code-block:: cpp B_x.storeChunk( - io::shareRaw(x_data), - {0, 0}, {150, 300}); + x_data, {0, 0}, {150, 300}); B_z.storeChunk( - io::shareRaw(z_data), - {0, 0}, {150, 300}); + z_data, {0, 0}, {150, 300}); B_y.makeConstant(y_data); @@ -310,10 +308,10 @@ Python .. code-block:: python3 - B_x.store_chunk(x_data) + B_x[:, :] = x_data - B_z.store_chunk(z_data) + B_z[:, :] = z_data @@ -354,12 +352,11 @@ C++17 .. code-block:: cpp - // destruct series object, - // e.g. when out-of-scope + series.close() Python ^^^^^^ .. code-block:: python3 - del series + series.close()