gemseo / algos / doe

# lib_custom module¶

## Run a DOE from a file containing samples values¶

class gemseo.algos.doe.lib_custom.CustomDOE[source]

Class used for creation of DOE samples provided by user This samples are provided as file in text or csv format.

Constructor, initializes the DOE samples For this class of DOE library, samples are provided as file in text or csv format. csv file format is assume to have a header whereas text file (extension .txt) has not.

ALGO_LIST = ['CustomDOE']
DELIMITER_KEYWORD = 'delimiter'
DOE_FILE = 'doe_file'
SKIPROWS_KEYWORD = 'skiprows'
read_file(doe_file, delimiter=',', comments='#', skiprows=0)[source]

Read a file containing a DOE

Parameters
• doe_file (str) – path and name of file

• delimiter (str) – The string used to separate values.

• comments (str) – the characters or list of characters used to indicate the start of a comment

• skiprows (int) – skip the first skiprows lines

Returns

sample (an array of samples)

Return type

numpy array