Installation¶
The ptycho_pmace package is currently only available to download and install from source available through GitHub at ptycho_pmace.
Downloading and installing from source¶
Download the source code:
Move to a directory of your choice and run the following commands.
git clone https://github.com/cabouman/ptycho_pmace.gitcd ptycho_pmaceAlternatively, you can directly clone from GitHub and then enter the repository.
Follow any of the two methods.
2.1. Easy installation:
If you have Anaconda installed, run the following commands.
cd dev_scriptssource ./clean_install_all.shcd ..2.2. Manual installation:
2.2.1 Create a Virtual Environment:
It is recommended that you install the package to a virtual environment. If you have Anaconda installed, you can run the following.
conda create --name pmace python=3.8conda activate pmace2.2.2 Install the dependencies:
In order to install the dependencies, use the following command.
pip install -r requirements.txt2.2.3 Install the documentation:
Use the following command to install the documentation.
cd docspip install -r requirements.txtmake clean htmlmake htmlcd ..
The installation is done. The
pmaceenvironment needs to be activated every time you use the package.
Validate installation:
You can validate the installation by running a demo script.
cd demo/python demo.py