Installation
NOTE: The installation instruction below assume that you have python installed on your machine and are using conda as your package/environment manager.
Option 1: Install from PIP or Conda (recommended for analysts):
- Create a new environment:
conda create --name rex
- Activate directory:
conda activate rex
- Install rex:
pip install NREL-rex
orconda install nrel-rex --channel=nrel
NOTE: If you install using conda and want to use HSDS you will also need to install h5pyd manually:
pip install h5pyd
Option 2: Clone repo (recommended for developers)
from home dir,
git clone git@github.com:NREL/rex.git
- Create
rex
environment and install package Create a conda env:
conda create -n rex
Run the command:
conda activate rex
cd into the repo cloned in 1.
prior to running
pip
below, make sure the branch is correct (install from main!)Install
rex
and its dependencies by running:pip install .
(orpip install -e .
if running a dev branch or working on the source code)
- Create
- Check that
rex
was installed successfully From any directory, run the following commands. This should return the help pages for the CLI’s.
rex
NSRDBX
WINDX
US-wave
- Check that
Usage on Eagle
If you would like to run rex on Eagle (NREL’s HPC) you can use a pre-compiled conda env:
conda activate /shared-projects/rev/modulefiles/conda/envs/rev/
or
source activate /shared-projects/rev/modulefiles/conda/envs/rev/