-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raise informative errors if v3 input files passed in #829
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really great and very helpful, thank you @misi9170 !
hi @misi9170 , I went through the code and thought it all looks great, thank you! I approved. I agree with your 2nd and 3rd comments that this is an ok way to leave things. Then on pip install, there I don't know, maybe something to see in beta testing? |
I like the spirit of this pull request, and I think it's a very helpful addition. Architecturally, this is mixing the physics model with the software infrastructure. I suggest to keep anything related to versioning, especially things you'll want to go back and change later as new versions come up, all in one place at the outer-most layer of the architecture. There was a place for this in the Floris class from the v2 to v3 shift (https://github.com/NREL/floris/blob/develop/floris/simulation/floris.py#L167). Essentially, when we read and deal with the Farm class in the future, we're not going to care about the input checking and messaging, so this adds more noise for our brains. Keeping it at the top allows us to forget about it until we need to go find it. That being said, I'm happy with your decision on how to handle it. |
To help address my third point above, I've now added an explanation that the user will need to do their own conversion of the multidimensional turbine csv file if they call convert_floris_input_v3_to_v4.py on a floris input file that specifies |
Regarding #829 (comment), @misi9170 and I looked at the options for catching outdated turbine inputs at a higher level in the architecture of FLORIS. The ideal time is prior to initializing the
Rather than trying to hack something together that is more complicated, we agreed it's best to have a more robust check within the |
Addresses #791
Checklist:
Notes and discussion points