Skip to main content

Module points

Module points 

Source
Expand description

The point stream assert --stdin reads: one point per line, with an optional per-line expectation.

Scoring an agent trajectory means asking the same question of hundreds of clicks, and a stream that silently skips what it cannot read is worse than one that stops: a run that scored 400 of 500 points and said nothing looks exactly like a run that scored all 500. So every malformed line is an error naming what was wrong with it, and the caller reports which line it was.

Blank lines and # comments are carried through the grammar rather than skipped by the caller, because a hand-written fixture file is a normal thing to want and stripping them at the wrong layer means each caller reinvents it.

Enums§

Line
One line of the stream.
PointError

Functions§

parse_line
Parse one line: X,Y, X,Y,label, blank, or # comment.