Static hosting:
- Source: https://github.com/TomographicImaging/scripts
- Rendered: https://tomographicimaging.github.io/scripts
cil_demos.yml - for installing the latest release of CIL-Demos on a system with a GPU.
cil_demos_cpu.yml - for installing the latest release of CIL-Demos on a system without a GPU.
cilviewer_ui - for installing the latest release of CILViewer, with packages needed to run the GUI.
test_notebooks_sequential.py is a script for testing the CIL-Demos
To use it:
-
Clone CIL-Demos, if you haven't already, and move to the branch of CIL-Demos you would like to test.
-
Clone scripts
-
Download all datasets used by the CIL-Demos notebooks you would like to test.
-
Create an environment using:
conda env create -f https://tomographicimaging.github.io/scripts/env/cil_test_demos.yml
-
Clone CIL, if you haven't already, and move to the branch of CIL you would like to test the demos with.
-
Activate the environment you created:
conda activate cil_test_demos
-
Navigate into the CIL directory and install CIL into this environment:
pip install -e . -
The script uses
nbmakeand needs to point to the kernel to run the notebooks with. We need to make sure our conda environment is registered with the correct jupyter kernel name. Run:jupyter kernelspec list
If there is a kernel with name
cil_test_demosthen move to step 9. If not, run:python -m ipykernel install --user --name cil_test_demos --display-name "cil_test_demos" -
At the top of the
test_notebooks_sequential.pyfile, update these variables:CIL_DEMOS_DIR- should point to your clone of CIL-DemosDATA_PATHandDATA_PATH_ALTshould point to directories where the CIL-Demos data is saved. -
Run
test_notebooks_sequential.py. This is likely to take quite a long time. It will create the following inside the current directory:test_notebooks_*.loglog file (with name including date and time of run): This shows which notebooks have run and whether they have passed or failed.tmp_notebooksdirectory: This contains the run and rendered.ipynbnotebook files.