def list_boundaries(path):
    with open(path, 'rb') as f:
        reader = binary_reader.BinaryReader(f, '<')
        header = print_header(reader)
        print ' '
        print ' '
        eb = EpochBoundaries(header,
            nev_events(reader, header),
            11,
            1,
            False
            )

        for b in eb.boundaries:
            print "[",b.start, "  -  ", b.end, "]"
def list_nev(path):
    with open(path, 'rb') as f:
        reader = binary_reader.BinaryReader(f, '<')
        header = print_header(reader)
        print ' '
        print ' '
        print 'NEV blocks:'
        for event in nev_events(reader, header):
                print "  Packet ID: " + str(event.event_id)
                print "  Time stamp: " + str(event.event_time)
                print "  Event ID: " + str(event.event_id)
                print "  TTL value: " + str(event.ttl_value)
                print "  CRC: " + str(event.crc)
                print "  Extra: " + str(event.extra)
                print "  Event string: " + event.event_string
                print " "
                print " "
        print "Done."