galactic.io.data.fimi#
galactic.io.data.fimi module
Defines the data reader for reading FIMI format files.
Class
FIMIDataReaderfor reading.datfile
- class FIMIDataReader#
Bases:
objectFIMI Data reader.
Example
>>> from pprint import pprint >>> from galactic.io.data.fimi import FIMIDataReader >>> reader = FIMIDataReader() >>> import io >>> text = ''' ... 1 3 ... 2 4 5 ... 1 2 ... 3 4 5 ... '''.strip() >>> dataset = reader.read(io.StringIO(text)) >>> dataset [[1, 3], [2, 4, 5], [1, 2], [3, 4, 5]]
- read(data_file)#
Read a FIMI data file.