Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

OptModules #19

Closed
jmora30 opened this issue Oct 6, 2018 · 2 comments
Closed

OptModules #19

jmora30 opened this issue Oct 6, 2018 · 2 comments

Comments

@jmora30
Copy link

jmora30 commented Oct 6, 2018

When I want to optimize my model using OptModules, I have to create this object from scratch based on the documentation from github and save it into the floris folder, right?. However, when I try to import the module from my code, for some reason its not finding it and I´m unable to import it. Could you give me a step by step to make this module work?

@petebachant
Copy link
Contributor

Take a look at the branch on my fork from #18: https://github.com/petebachant/FLORIS/blob/develop-pb/examples/example_optimization.py

I incorporated the optimization module into the package so you can import it in any script. To test out that version you can try (once inside the repo directory on your machine):

git remote add pb https://github.com/petebachant/FLORIS
git fetch pb
git checkout develop-pb
pip install -e .

@rafmudaf
Copy link
Contributor

@petebachant's improvements have now been merged into master so this should be resolved. I'm closing this issue but @jmora30 please open it again if this is still a problem for you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants