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

Read blade from excel file #55

Open
efirvida opened this issue Jan 23, 2025 · 0 comments
Open

Read blade from excel file #55

efirvida opened this issue Jan 23, 2025 · 0 comments

Comments

@efirvida
Copy link

Dear all I'm new to pyNuMAD, I'm trying to read the IEA 15MW 240 blade model from this repository which claims to be opensource and trusted reference to my research, but unfortunately, this gives an error reading the xlsx file

File .venv/lib/python3.12/site-packages/pynumad/objects/blade.py:116, in Blade.read_excel(self, filename)
    103 def read_excel(self, filename: str):
    104     """Populate blade attributes with excel file data
    105 
    106     Parameters
   (...)
    114 
    115     """
--> 116     excel_to_blade(self, filename)
    117     return self

File .venv/lib/python3.12/site-packages/pynumad/io/excel_to_blade.py:116, in excel_to_blade(blade, filename)
    114 nans = np.nonzero(np.isnan(definition.span))
    115 if nans:
--> 116     lastrow = nans[0][0]
    117 else:
    118     lastrow = definition.span.shape[0]

IndexError: index 0 is out of bounds for axis 0 with size 0

this is the xlsx file: https://github.com/UTDGriffithLab/UTD-IEA15MWBlade/blob/main/NuMADmodel/NuMAD_utd_iea15mw.xlsx

Compared with the one in the example, I see a lot of differences in the geometry tab, so maybe this file is for another version of the software.

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

No branches or pull requests

1 participant