Skip to content

Commit

Permalink
Fix deprecated storeChunk APIs in first read/write examples (#1435)
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel authored May 9, 2023
1 parent 55b8b96 commit 77c73e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
5 changes: 2 additions & 3 deletions docs/source/usage/firstread.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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()
15 changes: 6 additions & 9 deletions docs/source/usage/firstwrite.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
Expand Down Expand Up @@ -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()

0 comments on commit 77c73e2

Please sign in to comment.