pyleecan.Functions.Load.load_array module

load_array(file, sep=':', delimiter=',')[source]

Function to load numpy nD arrays. The data delimiter must be choosen correctly. Further the file must contain a header on the first line with the arrays shape. Example header: ‘# data: (2, 3, 4, 5)’

Parameters:
  • file (str) – the file that should be loaded

  • sep (str) – seperator that delimits the shape information in the header

  • delimiter (str) – data delimiter

Returns:

data – the loaded numpy array

Return type:

ndarray