pytrip.file_parser module

This module contains a parser method for parsing voxelplan files.

pytrip.file_parser.parse_to_var(data, var, stoptag='')[source]

Parses a variable ‘var’ from ‘data’.

Returns:(out,i) tuple

out - the rest of the line with ‘var’ and a ” ” removed. If nothing is followed, then True is returned. i - number of lines parsed.