crowsetta.formats.seq.textgrid.parse.get_int_from_next_line#
- crowsetta.formats.seq.textgrid.parse.get_int_from_next_line(fp: TextIO) int [source]#
Get next line from a text stream, search for a string that matches an int value, and return as an int.
Helper function used by
parse_fp()
, e.g., to parse the number of intervals in an interval tier.- Parameters:
fp (TextIO) – Python text stream from an open TextGrid file.
- Returns:
val
- Return type: