-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various changes, primarily testing-related (#492)
* Add discussion on conda-forge installation * Update license year range * Add note on miniconda scripts * Update license year range * Move --level option config to separate file * Resolve doctest failures * Resolve mypy complaint * Switch to Python 3.10 for CI * Add CI doctest in docs rst files * No doctest on macos * Typo fix * Change --level option usage * Add pytest-split and remove pytest-runner * Update submodule * Attempt to resolve CI pytest failure * Update submodule * Change command line argument option style * Update submodule * Update installation docs * Move tifffile back to main requirements * Bug fix * Update imageio usage * Docstring fix * Switch to imageio v3 * Update submodule * Update copyright year * Switch to imageio v3 * Resolve mypy error
- Loading branch information
Showing
24 changed files
with
146 additions
and
81 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
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
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
Submodule data
updated
4 files
+4 −7 | notebooks/video_rpca_admm.ipynb | |
+3 −2 | pytest/README.rst | |
+ − | pytest/durations_macos.bz2 | |
+ − | pytest/durations_ubuntu.bz2 |
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,7 +1,7 @@ | ||
-r requirements.txt | ||
pylint | ||
pytest>=7.3.0 | ||
pytest-runner | ||
pytest-split | ||
packaging | ||
pre-commit | ||
black>=22.3,<23 | ||
|
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,9 +3,9 @@ | |
Installing SCICO | ||
================ | ||
|
||
SCICO requires Python version 3.8 or later. (Version 3.9 is | ||
SCICO requires Python version 3.8 or later. (Version 3.10 is | ||
recommended as it is the version under which SCICO has been most | ||
thoroughly tested.) It is supported on both Linux and macOS, but is | ||
thoroughly tested.) It is supported on both Linux and MacOS, but is | ||
not currently supported on Windows due to the limited support for | ||
``jaxlib`` on Windows. However, Windows users can use SCICO via the | ||
`Windows Subsystem for Linux | ||
|
@@ -15,31 +15,86 @@ exist for using WSL with `CPU only | |
with `GPU support | ||
<https://docs.microsoft.com/en-us/windows/win32/direct3d12/gpu-cuda-in-wsl>`_. | ||
|
||
While not required, installation of SCICO and its dependencies within a `Conda <https://conda.io/projects/conda/en/latest/user-guide/index.html>`_ environment | ||
is recommended. `Scripts <https://github.com/lanl/scico/tree/main/misc/conda>`_ | ||
are provided for creating a `miniconda <https://docs.conda.io/en/latest/miniconda.html>`_ installation and an environment including all primary SCICO dependencies as well as dependencies | ||
for usage example, testing, and building the documentation. | ||
|
||
|
||
From PyPI | ||
--------- | ||
|
||
The simplest way to install the most recent release of SCICO from | ||
`PyPI <https://pypi.python.org/pypi/scico/>`_ is | ||
|
||
:: | ||
|
||
pip install scico | ||
|
||
which will install SCICO and its primary dependencies. If the additional | ||
dependencies for the example scripts are also desired, it can instead be | ||
installed using | ||
:: | ||
|
||
pip install scico[examples] | ||
|
||
Note, however, that since the ``astra-toolbox`` package available from | ||
PyPI is not straightforward to install (it has numerous build requirements | ||
that are not specified as package dependencies), it is recommended to | ||
first install this package via conda | ||
:: | ||
|
||
conda install astra-toolbox | ||
|
||
|
||
|
||
From conda-forge | ||
---------------- | ||
|
||
SCICO can also be installed from `conda-forge <https://anaconda.org/conda-forge/scico>`_ | ||
:: | ||
|
||
conda install -c conda-forge "scico>0.0.5" | ||
|
||
where the version constraint is required to avoid installation of an old | ||
package with broken dependencies. Note, however, that installation from conda forge is only straightforward for a Python 3.10 environment on Linux x64, due | ||
to limitations of conda packages for some of the SCICO dependencies: | ||
|
||
* There is no conda package for the secondary dependency ``tensorstore`` | ||
under MacOS. | ||
* In a Python 3.9 environment, a version of secondary dependency ``etils`` | ||
that does not support Python 3.9 will be installed. This can be rectified | ||
by | ||
:: | ||
|
||
conda install etils=1.5.1 | ||
* Conda packages for dependency ``svmbir`` are not currently available for | ||
Python versions greater than 3.10. If an attempt is made to install SCICO | ||
via conda forge, an older package with some missing dependencies for the | ||
example scripts will be installed. If required, these dependencies | ||
(including ``svmbir``, which can be installed using ``pip``) will have to | ||
be manually installed. | ||
|
||
The most recent SCICO conda forge package also includes dependencies for | ||
the example scripts, except for ``bm3d``, ``bm4d``, and | ||
``colour_demosaicing``, for which conda packages are not available. These | ||
can be installed from PyPI | ||
:: | ||
|
||
pip install bm3d bm4d colour_demosaicing | ||
|
||
|
||
|
||
From GitHub | ||
----------- | ||
|
||
SCICO can be downloaded from the `GitHub repo | ||
<https://github.com/lanl/scico>`_. Note that, since the SCICO repo has | ||
a submodule, it should be cloned via the command | ||
|
||
:: | ||
|
||
git clone --recurse-submodules [email protected]:lanl/scico.git | ||
|
||
Install using the commands | ||
|
||
:: | ||
|
||
cd scico | ||
|
@@ -59,13 +114,11 @@ a version with GPU support: | |
2. Install the version of jaxlib with GPU support, as described in the `JAX installation | ||
instructions <https://jax.readthedocs.io/en/latest/installation.html>`_. | ||
In the simplest case, the appropriate command is | ||
|
||
:: | ||
|
||
pip install --upgrade "jax[cuda11]" | ||
|
||
for CUDA 11, or | ||
|
||
:: | ||
|
||
pip install --upgrade "jax[cuda12]" | ||
|
@@ -74,7 +127,8 @@ a version with GPU support: | |
``jaxlib`` version if the most recent release is not yet supported | ||
by SCICO (as specified in the ``requirements.txt`` file), or if | ||
using a version of CUDA older than 11.4, or CuDNN older than 8.2, | ||
in which case the command would be of the form :: | ||
in which case the command would be of the form | ||
:: | ||
|
||
pip install --upgrade "jaxlib==0.4.2+cuda11.cudnn82" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html | ||
|
||
|
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,5 +1,4 @@ | ||
-r ../requirements.txt | ||
tifffile | ||
colour_demosaicing | ||
svmbir>=0.3.3 | ||
astra-toolbox | ||
|
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
Oops, something went wrong.