Skip to content

Conversation

@RHammond2
Copy link
Collaborator

This PR adds the ability to pass a DataFrame as the config["plant"]["location_data"] input for the CustomArraySystemDesign model and fixes a bug in the usage of np.unique with variable length inputs. To accompany this, I've also updated the custom array layout example notebook to include an example of the direct passing of a DataFrame in the configuration dictionary. An additional cable has been added to the Dudgeon layouts to ensure there is enough carrying capacity following the previous bug fix.

@RHammond2 RHammond2 requested a review from nRiccobo October 28, 2025 14:21
@RHammond2 RHammond2 added bug feature New feature or request labels Oct 28, 2025
Copy link
Collaborator

@nRiccobo nRiccobo left a comment

Choose a reason for hiding this comment

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

Thanks for adding this functionality and addressing the bug in the example. One note is that when I tried to run the example I got a NameError on plt from the plotting functions. Back in April, the matplotlib dependency was moved to optional. I adjusted the README file to address this.

@nRiccobo
Copy link
Collaborator

I also added a print statement as part of the try/except in array_layout_design.py. Feel free to adjust or reject that piece if you think its unnecessary.

@RHammond2 RHammond2 merged commit e624142 into WISDEM:dev Oct 30, 2025
14 checks passed
@RHammond2 RHammond2 deleted the feature/layout-input-options branch October 30, 2025 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants