Installation
To install, simply clone the repository to a desirable path:
cd /path/to/desired/directory/for/repos
git clone git@gitlab.com:mactodd315/fintrace.git
Then cd into the fintrace directory and install it. Note, if
you have your own environment you’d like to install it in, you must
have that active; otherwise follow the directions for creating the
fintrace environment.
cd fintrace
conda env create -f environment.yml # only if you want fintrace env!
pip install -e .
You will also need to download and install the cosmic-explorer repository
which contains several component objects that are not native to finesse,
thus must be installed explicitly.
conda activate fintrace # only if you want fintrace env! otherwise make sure you have your own env activated
cd /path/to/desired/directory/for/repos
git clone https://gitlab.com/cosmic-explorer/cosmic-explorer.git
Then cd into the cosmic-explorer directory and install it with:
cd cosmic-explorer
pip install -e .
Then, to test that everything has installed correctly:
cd /path/to/fintrace/repo
fintrace_plot_yaml examples/bowtie/bowtie_test.yaml \
--gtrace examples/bowtie/figures/bowtie_cavity \
--beam-origin cavity \
--draw-width --grid \
--cavity-trace all \
--beam-trace M3.fr2.o M4.fr1.i \
--q-in 0+4j \
--save-path examples/bowtie/figures/ \
--verbose
You should see the new figures directory in the examples folder, containing each of the plots created by the script.