Polarized light field microscopy forward model and inverse model using geometrical optics and Jones Calculus.
Run the following code to create a virtual environment will all the necessary and relevant packages:
conda create --name bir-tomo python=3.11 --yes
conda activate bir-tomo
pip install -e .
If you have a CUDA on your computer, or having issues with pytorch, try following the instructions here for installing pytorch.
To download an editable installation in developer mode:
pip install -e .[dev]
See pyproject.toml
for the dependencies.
Necessary packages:
To be updated soon...
For the forward model, the main script is run_simulations.py
. The workflow within that script is the following:
For the iterative reconstruction, the main script is run_recon.py
.
The workflow within that script is the following:
Open the streamlit page locally with
streamlit run User_Interface.py
You can also use our streamlit app that runs on the streamlit cloud and uses the code in the stream branch: https://polarizedlightfieldmicroscopy-forward-mo-user-interface-dc1r85.streamlit.app/
pytest
in the terminal to check that all the tests pass.pytest -v tests/test_jones.py::test_polscope
.