def __init__(self, filename, ignore_errors=False, field_labels=None):
self.filename = filename<EOL>self.ignore_errors = ignore_errors<EOL>try:<EOL><INDENT>if field_labels is not None:<EOL><INDENT>field_labels = set(field_labels)<EOL>field_labels.add("<STR_LIT>")<EOL>field_labels.add("<STR_LIT>")<EOL><DEDENT>self._read(filename, field_labels)<EOL><DEDENT>except FileFormatError:<EOL><INDENT>if ignore_errors:<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>raise<EOL><DEDENT><DEDENT>self._analyze()<EOL>
Arguments:
 | ``filename``  --  The formatted checkpoint file

Optional arguments:
 | ``ignore_errors``  --  Try to read incorrectly formatted files
                          without raising exceptions [default=False]
 | ``field_labels``  --  When given, only these fields are read from
                         the formatted checkpoint file. (This can
                         save a lot of time.)