ascii_reader

sans.dataloader.readers.ascii_reader

class sans.dataloader.readers.ascii_reader.Reader

Class to load ascii files (2, 3 or 4 columns).

__module__ = 'sans.dataloader.readers.ascii_reader'
allow_all = True
ext = ['.txt', '.TXT', '.dat', '.DAT', '.abs', '.ABS', 'csv', 'CSV']
read()

Load data file

Parameters:

path – file path

Returns:

Data1D object, or None

Raises:
  • RuntimeError – when the file can’t be opened
  • ValueError – when the length of the data vectors are inconsistent
type = ['ASCII files (*.txt)|*.txt', 'ASCII files (*.dat)|*.dat', 'ASCII files (*.abs)|*.abs', 'CSV files (*.csv)|*.csv']
type_name = 'ASCII'

Table Of Contents

Previous topic

abs_reader

Next topic

associations

This Page