This repository holds examples showcasing the use of the pyglotaran package.
Can be installed as a python package from sources, but is not released on pypi or conda.
Prerequisites:
- Python 3.8 or 3.9
- Python package
pyglotaranv0.3.0 (or later)
Note for Windows Users: The easiest way to get python for Windows is via Anaconda
To install pyglotaran-examples from sources, either clone this repository or download the latest release, then run this command in your terminal:
git clone https://github.com/glotaran/pyglotaran-examples.git
cd pyglotaran-examples
pip install -e .To locally check if your changes to pyglotaran introduced breaking changes
you can use the examples as an integration and run them from the CLI.
Install the examples and all needed dependencies with:
pip install -e .
pip install -r requirements.txtRun all examples via the CLI script:
python scripts/run_examples.py run-allIf you don't want the plots to pop up you can add the --headless flag,
the plots will then be saved in the folder plot_results as one PDF per script.
python scripts/run_examples.py run-all --headlessTo run only single examples check out the help by running.
python scripts/run_examples.py -h