Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ebranlard committed Nov 27, 2023
2 parents 142fb81 + 648de5b commit 16e917c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 18 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# openfast_toolbox

[![Build status](https://github.com/openfast/python-toolbox/workflows/Development%20Pipeline/badge.svg)](https://github.com/OpenFAST/python-toolbox/actions?query=workflow%3A%22Development+Pipeline%22)
[![Build status](https://github.com/openfast/openfast_toolbox/workflows/Development%20Pipeline/badge.svg)](https://github.com/OpenFAST/openfast_toolbox/actions?query=workflow%3A%22Development+Pipeline%22)
[![Python: 3.6+](https://img.shields.io/badge/python-3.6%2B-informational)](https://www.python.org/)

Python package to work with NREL-supported [OpenFAST](https://github.com/OpenFAST/openfast) tool.
Expand All @@ -10,8 +10,8 @@ This repository intends to provide simple scripts to help OpenFAST users setup m
## Installation and testing

```bash
git clone https://github.com/OpenFAST/python-toolbox
cd python-toolbox
git clone https://github.com/OpenFAST/openfast_toolbox
cd openfast_toolbox
python -m pip install -e .
pytest
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Script to postprocess linearization files from OpenFAST for one operating point.
Adapted from:
https://github.com/OpenFAST/python-toolbox/blob/dev/openfast_toolbox/linearization/examples/ex2a_MultiLinFiles_OneOP.py
https://github.com/OpenFAST/openfast_toolbox/blob/dev/openfast_toolbox/linearization/examples/ex2a_MultiLinFiles_OneOP.py
"""
import os
Expand Down
9 changes: 1 addition & 8 deletions developper_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ twine upload dist/* # upload to pypi
### Step 1: go to your repo
Go to folder
```bash
cd path/to/python-toolbox
cd path/to/openfast_toolbox
```

### Step 2: change version in setup.py and tag it
Expand All @@ -58,13 +58,6 @@ Run twine to upload to Pypi (will ask for username and password)
twine upload dist/*
```

### After clone / first time
Add `.gitconfig` to your path, to apply filters on jupyter notebooks
```bash
git config --local include.path ../.gitconfig
```



## Upload a new version to Conda
TODO TODO TODO
Expand Down
2 changes: 1 addition & 1 deletion openfast_toolbox/fastfarm/FASTFarmCaseCreation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ def _setRotorParameters(self):


def TS_low_setup(self, writeFiles=True, runOnce=False):
# Loops on all conditions/seeds creating Low-res TurbSim box (following python-toolbox/openfast_toolbox/fastfarm/examples/Ex1_TurbSimInputSetup.py)
# Loops on all conditions/seeds creating Low-res TurbSim box (following openfast_toolbox/openfast_toolbox/fastfarm/examples/Ex1_TurbSimInputSetup.py)

boxType='lowres'
for cond in range(self.nConditions):
Expand Down
4 changes: 0 additions & 4 deletions openfast_toolbox/linearization/campbell_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,6 @@ def IdentifyModes(CampbellData):
Original contribution by: Srinivasa B. Ramisett, [email protected], https://ramisetti.github.io
"""
#import pickle
#pickle.dump(CampbellData, open('C:/Work/_libs/python-toolbox/data/_CampbellData_UA4_DB2.pkl','wb'))


# --- Looking at states descriptions (of first run, first mode), to see if we are offshore.
# NOTE: DescStates is likely the same for all modes
DescStates = CampbellData[0]['Modes'][0]['DescStates']
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
description="openfast_toolbox",
long_description=LONG_DESCRIPTION,
version=VERSION,
url="https://github.com/openfast/python-toolbox/",
url="https://github.com/openfast/openfast_toolbox/",
classifiers=[
"Topic :: Utilities",
"Topic :: Software Development :: Testing",
Expand Down

0 comments on commit 16e917c

Please sign in to comment.