@not_in_run<EOL><INDENT>def f_shrink(self, force=False):<DEDENT>
if self._stored and not force:<EOL><INDENT>raise TypeError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>for param in self._explored_parameters.values():<EOL><INDENT>param.f_unlock()<EOL>try:<EOL><INDENT>param._shrink()<EOL><DEDENT>except Exception as exc:<EOL><INDENT>self._logger.error('<STR_LIT>' %<EOL>(param.v_full_name, repr(exc)))<EOL><DEDENT><DEDENT>self._explored_parameters = {}<EOL>self._run_information = {}<EOL>self._single_run_ids = {}<EOL>self._add_run_info(<NUM_LIT:0>)<EOL>self._test_run_addition(<NUM_LIT:1>)<EOL>
Shrinks the trajectory and removes all exploration ranges from the parameters.
        Only possible if the trajectory has not been stored to disk before or was loaded as new.

        :param force:

            Usually you cannot shrink the trajectory if it has been stored to disk,
            because there's no guarantee that it is actually shrunk if there
            still exist explored parameters on disk. In case you are certain that
            you did not store explored parameters to disk set or you deleted all
            of them from disk set `force=True`.

        :raises: TypeError if the trajectory was stored before.