Installation
Simple Install
Use conda (anaconda or miniconda) to create a phygnn environment:
conda create --name phygnn python=3.9
Note 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 phygnn
Install with pip or conda:
pip install NREL-phygnn
conda install -c nrel nrel-phygnn
Developer Install
Use conda (anaconda or miniconda) to create a phygnn environment:
conda create --name phygnn python=3.9
Activate your new conda env:
conda activate phygnn
Clone the phygnn repository:
git clone git@github.com:NREL/phygnn.git
Navigate to the cloned repo and checkout your desired branch:
git checkout main
orgit 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 PhysicsGuidedNeuralNetwork
Navigate to the
tests/
directory and run the command:pytest