🔌 Application Programming Interface#
galactic.io.data.fimi
module
Class
FIMIDataReader
for reading.dat
file
- class FIMIDataReader#
Bases:
object
FIMI
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)]