-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from dkazanc/docsupdate
fixing api build and updating sphinx
- Loading branch information
Showing
24 changed files
with
386 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
:mod:`tomobar.astra_wrappers` | ||
============================================ | ||
tomobar.astra\_wrappers package | ||
=============================== | ||
|
||
Submodules | ||
---------- | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
tomobar.astra_wrappers.astra_base | ||
tomobar.astra_wrappers.astra_tools2d | ||
tomobar.astra_wrappers.astra_tools3d | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: tomobar.astra_wrappers | ||
:members: | ||
:show-inheritance: | ||
:undoc-members: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,10 @@ | |
Installation Guide | ||
------------------ | ||
ToMoBAR is a Python package with several :ref:`ref_dependencies`. To ensure its full functionality it is recommended to install them. | ||
It mostly relies on the GPU-enabled computations and therefore we suggest using a decent NVIDIA graphics card to support it. | ||
It mostly relies on the GPU-enabled computations and therefore we suggest using a decent NVIDIA graphics card to support it. ToMoBAR | ||
can run with `CuPy <https://cupy.dev/>`_ or using normal routines using pre-built CUDA modules of the Regularisation Toolkit. | ||
|
||
.. note:: CuPy-enabled ToMoBAR is the development in progress. Methods like FISTA can normally run several times faster, however, not every method variation is supported. | ||
|
||
.. _ref_python: | ||
|
||
|
@@ -13,24 +16,32 @@ Python | |
Install ToMoBAR as a pre-built conda Python package: | ||
++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
|
||
Minimal installation that skips most of :ref:`ref_dependencies`: | ||
|
||
.. code-block:: console | ||
$ conda install -c httomo tomobar | ||
or install with the dependencies into a new environment: | ||
or install with the dependencies into a new environment (tested on Linux and Windows): | ||
|
||
.. code-block:: console | ||
$ conda install -c httomo -c conda-forge tomophantom tomobar astra-toolbox ccpi-regulariser pypwt | ||
$ conda install -c httomo -c conda-forge tomophantom tomobar astra-toolbox ccpi-regulariser | ||
In addition you can install CuPy :code:`conda install conda-forge::cupy` if you need CuPy-enabled modules and :code:`pip install pypwt` if you are planning to use | ||
wavelet regularisation. | ||
|
||
one can also try this installation, especially for other than Linux OSs: | ||
If the installation above does not work, one can also try: | ||
|
||
.. code-block:: console | ||
$ conda install -c httomo -c ccpi -c conda-forge tomophantom tomobar astra-toolbox ccpi-regulariser | ||
.. warning:: Note that packages installed from the CCPi channel might be of different versions and incompatible with the demos. Please create an `issue <https://github.com/dkazanc/ToMoBAR/issues>`_ on GitHub if there is a problem with an installation from the httomo channel. | ||
|
||
Install ToMoBAR from PyPi: | ||
+++++++++++++++++++++++++++ | ||
++++++++++++++++++++++++++ | ||
|
||
One can install ToMoBAR from PyPi, however, not all dependencies might be at PyPi yet. | ||
|
||
.. code-block:: console | ||
|
@@ -40,8 +51,8 @@ One can install ToMoBAR from PyPi, however, not all dependencies might be at PyP | |
Using conda environment: | ||
+++++++++++++++++++++++++ | ||
One can also create a new conda environment by using environment yaml file, | ||
and then **pip** install ToMoBAR into it. | ||
One can also create a new conda environment by using the provided environment yaml file, | ||
and then **pip** install ToMoBAR into the environment. | ||
|
||
.. code-block:: console | ||
|
@@ -60,15 +71,16 @@ This sets the development environment to work in-place on the code. | |
$ conda env create --name tomobar --file conda-recipe/environment/environment.yml | ||
$ conda activate tomobar | ||
$ pip install -e .[dev] # the editable environment | ||
$ pytest tests/ # all tests should pass | ||
$ pytest tests/test_RecToolsDIR.py tests/test_RecToolsIR.py | ||
$ pytest tests/ # you'll need CuPy to run all tests | ||
Conda builds | ||
+++++++++++++ | ||
If one needs to conda-build the package, please follow the steps bellow: | ||
|
||
.. code-block:: console | ||
$ export VERSION=$(date +%Y.%m) # OR set VERSION=2024.01 for Windows | ||
$ export VERSION=$(date +%Y.%m) # OR set VERSION=2025.01 for Windows | ||
$ git clone [email protected]/dkazanc/ToMoBAR.git # clone the repo | ||
$ conda build conda-recipe/ | ||
$ conda install path/to/the/tarball | ||
|
@@ -77,6 +89,5 @@ If one needs to conda-build the package, please follow the steps bellow: | |
|
||
Matlab | ||
====== | ||
Matlab part of ToMoBAR is not currently maintained and will be deprecated in future releases. | ||
The code and Demos we provide have been tested with Matlab 2018 and ASTRA-Toolbox version v1.8.3. | ||
.. warning:: Matlab's part of ToMoBAR is not currently maintained and will be deprecated in future releases. The code and demos were tested with Matlab 2018 and ASTRA-Toolbox version v1.8.3. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.