smps.io.smps_from_txt#

smps.io.smps_from_txt(fpath, column=True, delimiter=',', as_dict=False, **kwargs)#

Create an SMPS object directory from a text file via TSIs AIM software.

Parameters
fpathstr

The filepath where the file to read is located.

columnbool, default=True

If your data was exported in ‘column’ format, leave as True. If exported in ‘row’ format, set to False.

delimiterstr, default=’,’

Sets the delimiter to expect when reading the data file.

as_dictbool, default=False

Set to true to return a dict, otherwise returns an SMPS object.

Returns
smps.models.SMPS or dict

See also

smps.models.SMPS

Examples

Load a data file with all defaults:

>>> obj = smps.io.smps_from_text(filepath)

Load a similar file, but exported in row format:

>>> obj = smps.io.smps_from_text(filepath, column=False)