ImportMatrixXls (class)

File generated according to pyleecan/Generator/ClassesRef/Import/ImportMatrixXls.csv WARNING! All changes made in this file will be lost!

class ImportMatrixXls(file_path='', sheet='', skiprows=0, usecols=None, is_transpose=False, init_dict=None)[source]

Bases: pyleecan.Classes.ImportMatrix.ImportMatrix

Import the data from an xls file

VERSION = 1
get_data()

Return the object’s matrix

Parameters:self (ImportMatrixVal) – An ImportMatrixVal object
Returns:matrix – The object’s matrix
Return type:ndarray
save(save_path='')

Save the object to the save_path

Parameters:
  • self – A pyleecan object
  • save_path (str) – path to the folder to save the object
as_dict()[source]

Convert this objet in a json seriable dict (can be use in __init__)

file_path

Path of the file to load

sheet

Name of the sheet to load

skiprows

To skip some rows in the file (header)

usecols

To select the range of column to use