Skip to content
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

Reorganizing common costs in design modules #169

Merged
merged 20 commits into from
Aug 1, 2024

Conversation

nRiccobo
Copy link
Collaborator

@nRiccobo nRiccobo commented Jul 9, 2024

Several design modules employ common costs or cost rates for different components if the user does not specify their own value. While this only takes up about 1 line per call, the downside is that default values scattered among the design modules. This pull request reorganizes all those default values into ORBIT/core/default/common_cost.yaml so they can be more easily accessed and managed. Additionally, extra logic was incorporated to catch KeyErrors.

@nRiccobo nRiccobo requested a review from RHammond2 July 9, 2024 22:51
Copy link
Collaborator

@RHammond2 RHammond2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, @nRiccobo! A few really minor things are noted throughout. I'd also just check on your references to be sure they all get produced in the documentation. I was under the impression that each time a reference is used it needed to be included in the docstring, but I could be mistaken here.

ORBIT/phases/design/design_phase.py Outdated Show resolved Hide resolved
ORBIT/phases/design/electrical_export.py Outdated Show resolved Hide resolved
ORBIT/phases/design/electrical_export.py Show resolved Hide resolved
ORBIT/phases/design/electrical_export.py Show resolved Hide resolved
ORBIT/phases/design/electrical_export.py Show resolved Hide resolved
ORBIT/phases/design/spar_design.py Show resolved Hide resolved
ORBIT/phases/design/spar_design.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@RHammond2 RHammond2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, everything was cleared up on our call on Wednesday, so this is ready to go. Thanks again, @nRiccobo!

@nRiccobo nRiccobo merged commit 7b59430 into WISDEM:dev Aug 1, 2024
7 checks passed
@nRiccobo nRiccobo deleted the relocate-get-costs branch August 1, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants