Skip to content
Snippets Groups Projects
Commit 93f9b2cf authored by Julius's avatar Julius
Browse files

added doc for write to paths

parent 851098af
Branches
Tags
1 merge request!44Resolve "Add doc for when to call via serializer, when to call plt"
Pipeline #1655446 passed
...@@ -9,6 +9,12 @@ The JSON string can be accessed via the ``to_json()``-Method on the serializer o ...@@ -9,6 +9,12 @@ The JSON string can be accessed via the ``to_json()``-Method on the serializer o
serializer.to_json() serializer.to_json()
serializer.write_json_file("test_plot.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 Serializing to RO-Crate
----------------------- -----------------------
PloSe allows you to store your plot as an `RO-Crate <https://www.researchobject.org/ro-crate/>`_. PloSe allows you to store your plot as an `RO-Crate <https://www.researchobject.org/ro-crate/>`_.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment