This guide is intended for students who need a clean, repeatable Python environment for openfast_toolbox.
The recommended environment name is:
openfast-toolbox-envStudents need two things:
- a Python environment with the required packages
- an OpenFAST executable available on the machine
This repository only installs the Python toolbox. It does not install the OpenFAST executable itself.
Open PowerShell and run:
git clone https://github.com/SMI-Lab-Inha/openfast_toolbox.git
cd openfast_toolbox
conda env create -f environment.yml
conda activate openfast-toolbox-env
python -m pip install -e .
python -m ipykernel install --user --name openfast-toolbox-env --display-name "openfast-toolbox-env"Use:
conda activate openfast-toolbox-env
python -m pip install -e .Students must also make sure OpenFAST is accessible.
Any one of the following is acceptable:
OpenFAST.exeis onPATH- the environment variable
OPENFAST_EXEpoints to the executable - the notebook or script sets the executable path explicitly
Example in PowerShell:
$env:OPENFAST_EXE = "C:\Path\To\OpenFAST.exe"After installation, run these checks in PowerShell.
python -c "import openfast_toolbox, numpy, pandas, matplotlib; print('Python environment OK')"python -m jupyter kernelspec listYou should see openfast-toolbox-env in the list.
If OpenFAST is on PATH:
OpenFAST.exe /hIf you are using OPENFAST_EXE:
& $env:OPENFAST_EXE /hIf Miniconda or Anaconda is installed but conda is not on PATH, students can use the full path to conda.exe or _conda.exe.
Example:
& "C:\Users\<username>\miniconda3\condabin\conda.bat" activate openfast-toolbox-envor
& "C:\Users\<username>\miniconda3\_conda.exe" env create -f environment.ymlMake sure the notebook kernel is set to:
openfast-toolbox-env
Check:
python -m pip show openfast_toolboxThe displayed location should match the repository folder the student actually cloned.
Before students start the notebook, ask them to verify:
conda activate openfast-toolbox-envworkspython -c "import openfast_toolbox"worksOpenFAST.exe /hor& $env:OPENFAST_EXE /hworks- Jupyter shows the
openfast-toolbox-envkernel