Skip to content

Read blade from excel file #55

@efirvida

Description

@efirvida

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions