Installation

You should install Python (3.7 or newer) and Graphviz before installing the PFAS_SAT. We recommend to use miniconda and create a new environment for the PFAS_SAT but it’s not required. Here are PFAS_SAT dependencies: (These packages are available on PyPI).

  1. PySide2: Used for creating the user interface.

  2. stats-arrays: Used for defining uncertainty distributions.

  3. plotly: Used for plotting Sankey diagrams.

  4. matplotlib: Used for data visualization.

  5. graphviz: Used for plotting the Network.

  6. pandas: Used for storing data in tables and manipulating them.

  7. jupyter: Used as a command-line interface.

Here are the instructions to install PFAS_SAT with miniconda:

1- Download and install miniconda from: https://docs.conda.io/en/latest/miniconda.html

2- Update conda in a terminal window or anaconda prompt:

conda update conda

3- Create a new environment for PFAS_SAT:

conda create --name PFAS_SAT python=3.7 graphviz

4- Activate the environment (Windows users):

conda activate PFAS_SAT

Note: If you are using Linux or macOS:

source activate PFAS_SAT

5- Install PFAS_SAT in the environment:

pip install PFAS_SAT

6- Only for Windows user (If you are using Linux or macOS, go to the next step). Make sure that bin/ subdirectory of Graphviz which contains the layout commands for rendering graph descriptions (dot) is on your system path: On the command-line, dot -V should print the version of your Graphviz.

7- Open python to run PFAS_SAT:

python

8- Run PFAS_SAT in python:

import PFAS_SAT as ps
ps.PFAS_SAT()