From 93f9b2cf78d0a9650a0668cd5c604b3a8d38b229 Mon Sep 17 00:00:00 2001 From: Julius <juliusflorstedt@gmail.com> Date: Sun, 30 Mar 2025 12:11:00 +0200 Subject: [PATCH] added doc for write to paths --- doc/output.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/output.rst b/doc/output.rst index 9885e73..0984db5 100644 --- a/doc/output.rst +++ b/doc/output.rst @@ -9,6 +9,12 @@ The JSON string can be accessed via the ``to_json()``-Method on the serializer o serializer.to_json() serializer.write_json_file("test_plot.json") +Writing to paths is also supported, with directories being created if they do not exist. + +.. code-block:: python + + serializer.write_json_file("some_dir/test_plot.json") + Serializing to RO-Crate ----------------------- PloSe allows you to store your plot as an `RO-Crate <https://www.researchobject.org/ro-crate/>`_. -- GitLab