Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 612 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 612 Bytes

cifter

Python3 ATOC CIF file parser

Usage

from cifter import parse_file

document = parse_file('ttisf760.mca')

for schedule_record in document.schedule_records:
    print("Basic record\n")
    print(schedule_record.basic_record)
    print("Origin record\n")
    print(schedule_record.origin_record)
    print("Intermediate records\n")
    for intermediate_record in schedule_record.intermediate_records:
        print(intermediate_record)
    print("Termination record\n")
    print(schedule_record.termination_record)

Note that the parse_file() method is a blocking CPU bound operation