def _trj_check_version(self, version, python, force):
curr_python = pypetconstants.python_version_string<EOL>if (version != VERSION or curr_python != python) and not force:<EOL><INDENT>raise pex.VersionMismatchError('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' %<EOL>(VERSION, curr_python, version, python))<EOL><DEDENT>elif version != VERSION or curr_python != python:<EOL><INDENT>self._logger.warning('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' %<EOL>(VERSION, curr_python, version, python))<EOL><DEDENT>
Checks for version mismatch

        Raises a VersionMismatchError if version of loaded trajectory and current pypet version
        do not match. In case of `force=True` error is not raised only a warning is emitted.