IO module#

Submodules#

pynumad.io.excel_to_blade.excel_to_blade(blade, filename)#

xlsBlade Construct BladeDef object with inputs from spreadsheet.

Parameters:

filename (string) – path to Excelfile

Returns:

blade (Blade) – blade object populated by Excel file

Example

blade = xlsBlade(FILENAME)

pynumad.io.yaml_to_blade.yaml_to_blade(blade, filename: str, write_airfoils: bool = False)#

This method writes blade information from a .yaml file to a Blade object. The yaml file is expected to be formatted according to the WindIO ontology. See https://windio.readthedocs.io/en/stable/source/turbine.html.

Parameters:
  • blade (Blade)

  • filename (string) – path to .yaml file

  • write_airfoils (bool) – Set true to write airfoil files while reading in data. Defaults to false.

Returns:

blade (Blade) – input blade object populated with yaml data

pynumad.io.xml_to_airfoil.xml_to_airfoil(airfoil, filecontents=None)#

TODO docstring