Installation
Simple Install
Use conda (anaconda or miniconda) to create a phygnn environment:
conda create --name phygnn python=3.9Note that phygnn is tested with python >= 3.8 via pip install. Users have reported issues installing phygnn using conda install.
Activate your new conda env:
conda activate phygnnInstall with pip or conda:
pip install NREL-phygnnconda install -c nrel nrel-phygnn
Developer Install
Use conda (anaconda or miniconda) to create a phygnn environment:
conda create --name phygnn python=3.9Activate your new conda env:
conda activate phygnnClone the phygnn repository:
git clone git@github.com:NREL/phygnn.gitNavigate to the cloned repo and checkout your desired branch:
git checkout mainorgit checkout <branch>Navigate to the phygnn directory that contains setup.py and run:
pip install -e .(developer install) orpip install .(static install).Test your installation:
Start ipython and test the following import:
from phygnn import PhysicsGuidedNeuralNetworkNavigate to the
tests/directory and run the command:pytest