diff --git a/docs/source/about.rst b/docs/source/about.rst new file mode 100644 index 0000000000000000000000000000000000000000..5c7f2dc7c84e27892d303611c935e497386de9bb --- /dev/null +++ b/docs/source/about.rst @@ -0,0 +1,9 @@ +About plotID +================================== + +plotID is developed at the Institut Fluidsystemtechnik within nfdi4ing at the Technische Universität Darmstadt. + +Acknowledgements +--------------- + +The authors would like to thank the Federal Government and the Heads of Government of the Länder, as well as the Joint Science Conference (GWK), for their funding and support within the framework of the NFDI4Ing consortium. Funded by the German Research Foundation (DFG) - project number 442146713. \ No newline at end of file diff --git a/docs/source/dependencies.rst b/docs/source/dependencies.rst index 0229267378228945a58b3d9b5022f8ee24085de9..7c5290c1d5a31957257be3e4339d7857ba232903 100644 --- a/docs/source/dependencies.rst +++ b/docs/source/dependencies.rst @@ -8,10 +8,10 @@ The plotID package depends on other software for its full funcionality. Since pl - `qrcode <https://github.com/lincolnloop/python-qrcode>`_: Creates QR codes from input data. qrcode is used to create the QR code which is printed on the plot in the end. - `numpy <https://numpy.org/doc/stable/>`_: Package for scientific computing. Right now it is only used to generate sample data in the examples. Since it is a dependency of matplotlib, it has to be installed anyway. -Optional depedencies that are not necessary to run plotID but more to contribute to the code are the following: +Optional dependencies that are not necessary to run plotID but more to contribute to the code quality are the following: - `coverage <https://coverage.readthedocs.io/en/6.5.0/#>`_: Program to measure the code coverage. It is used in the development of plotID to monitor the coverage of the code when the unit tests are run. - `sphinx <https://www.sphinx-doc.org/en/master/>`_: Program to build documentation. For example, this documentatio is generated with the help of sphinx. - `sphinx-autoapi <https://sphinx-autoapi.readthedocs.io/en/latest/>`_: Generates documentation files automatically from documentation inside the code. This has the advantage that code can be documented inside the code but can also be read in the documentation without having two places with the same content. - `sphinx-rtd-theme <https://sphinx-rtd-theme.readthedocs.io/en/stable/>`_: Readthedocs theme for nicer documentation style. -- `myst-parser <https://myst-parser.readthedocs.io/en/latest/>`_: Extenstion for sphinx, e.g. to include markdown files in the documentation. That allows to include plotID's README.md in the documentation without storing it at two different places. \ No newline at end of file +- `myst-parser <https://myst-parser.readthedocs.io/en/latest/>`_: Extension for sphinx, e.g. to include markdown files in the documentation. That allows to include plotID's README.md in the documentation without storing it at two different places. diff --git a/docs/source/index.rst b/docs/source/index.rst index d6c673c14b0d29ed3baa329fc17d22ebc155e19a..47476c219e1ed184ab832705fc63177d9fe64278 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -10,9 +10,11 @@ Welcome to plotID's documentation! :maxdepth: 2 :caption: Contents: - README <readme_link.rst> - Structure and architecture <structure.rst> + Overview <readme_link.rst> + Installation <installation.rst> Dependencies <dependencies.rst> + Structure and architecture <structure.rst> + About <about.rst> Indices and tables diff --git a/docs/source/installation.rst b/docs/source/installation.rst new file mode 100644 index 0000000000000000000000000000000000000000..aac633f952e67956d810ea2e312530c84c664885 --- /dev/null +++ b/docs/source/installation.rst @@ -0,0 +1,55 @@ +Installation of plotID +================================== + +For installation instructions, first have a look at the general :doc:`readme_link` or the `README.md <https://git.rwth-aachen.de/plotid/plotid_python/-/blob/main/README.md>`_ file. More detailed information about the installation process can then be found here. + +Wrong python version +-------------------- +To install and run plotID a python version ≥ 3.10 is required. If your linux distribution is shipped with a python version < 3.10, you still can install a newer python version. Intalling python 3.10 on Debian or Ubuntu would look like this + +.. code:: bash + + sudo apt install python3.10 python3.10-venv + +You can then create a virtual environment "venv" to run plotID inside it + +.. code:: bash + + python3.10 -m venv venv + +Now activate the venv + +.. code:: bash + + source venv/bin/activate + +The virtual environment now runs with python 3.10 and plotID can be installed the usual way as described in :doc:`Overview`. + + +Installation on Windows via pip +------------------------------- +If you're trying + +.. code:: cmd + + pip install . + +and following error is thrown + +.. code:: cmd + + Fatal error in launcher: Unable to create process using '"...env\Scripts\python.exe" "..\venv\Scripts\pip.exe" install .': The system cannot find the specified file. + +Try to forcefully reinstall pip + +.. code:: cmd + + python -m pip install --upgrade --force pip + +Or use + +.. code:: cmd + + python -m pip install . + +instead. diff --git a/docs/source/plotid.rst b/docs/source/plotid.rst deleted file mode 100644 index 005afcdb7f40bef97789edbedf0d42196589d5b4..0000000000000000000000000000000000000000 --- a/docs/source/plotid.rst +++ /dev/null @@ -1,85 +0,0 @@ -plotid package -============== - -Submodules ----------- - -plotid.create\_id module ------------------------- - -.. automodule:: plotid.create_id - :members: - :undoc-members: - :show-inheritance: - -plotid.example module ---------------------- - -.. automodule:: plotid.example - :members: - :undoc-members: - :show-inheritance: - -plotid.filecompare module -------------------------- - -.. automodule:: plotid.filecompare - :members: - :undoc-members: - :show-inheritance: - -plotid.hdf5\_external\_link module ----------------------------------- - -.. automodule:: plotid.hdf5_external_link - :members: - :undoc-members: - :show-inheritance: - -plotid.plotoptions module -------------------------- - -.. automodule:: plotid.plotoptions - :members: - :undoc-members: - :show-inheritance: - -plotid.publish module ---------------------- - -.. automodule:: plotid.publish - :members: - :undoc-members: - :show-inheritance: - -plotid.save\_plot module ------------------------- - -.. automodule:: plotid.save_plot - :members: - :undoc-members: - :show-inheritance: - -plotid.tagplot module ---------------------- - -.. automodule:: plotid.tagplot - :members: - :undoc-members: - :show-inheritance: - -plotid.tagplot\_matplotlib module ---------------------------------- - -.. automodule:: plotid.tagplot_matplotlib - :members: - :undoc-members: - :show-inheritance: - -Module contents ---------------- - -.. automodule:: plotid - :members: - :undoc-members: - :show-inheritance: diff --git a/docs/source/readme_link.rst b/docs/source/readme_link.rst index 5b96f4d2576abcb33c94a270826d2c3ae6a6d0bd..648323f26365739c8c2b19a30ab2cb2b42eafd17 100644 --- a/docs/source/readme_link.rst +++ b/docs/source/readme_link.rst @@ -1,4 +1,7 @@ -Readme File +Overview +======== + +README file ----------- .. include:: ../../README.md