pypet/trajectory.py
def f_finalize_run(self, store_meta_data=True, clean_up=True):
        """ Can be called to finish a run if manually started.

        Does NOT reset the index of the run,
        i.e. ``f_restore_default`` should be called manually if desired.

        Does NOT store any data (except meta data) so you have to call
        ``f_store`` manually before to avoid data loss.

        :param store_meta_data:

            If meta data like the runtime should be stored

        :param clean_up:

            If data added during the run should be cleaned up.
            Only works if ``turn_into_run`` was set to ``True``.

        """
        if not self._run_started:
            return self

        self._set_finish()

        if clean_up and self._is_run:
            self._finalize_run()

        self._is_run = False
        self._run_started = False

        self._updated_run_information.add(self.v_idx)

        if store_meta_data:
            self.f_store(only_init=True)

        return self
def f_finalize_run(self, store_meta_data=True, clean_up=True):
        if not self._run_started:
            return self

        self._set_finish()

        if clean_up and self._is_run:
            self._finalize_run()

        self._is_run = False
        self._run_started = False

        self._updated_run_information.add(self.v_idx)

        if store_meta_data:
            self.f_store(only_init=True)

        return self
def f_finalize_run ( self , store_meta_data = True , clean_up = True ) : if not self . _run_started : return self self . _set_finish ( ) if clean_up and self . _is_run : self . _finalize_run ( ) self . _is_run = False self . _run_started = False self . _updated_run_information . add ( self . v_idx ) if store_meta_data : self . f_store ( only_init = True ) return self
Can be called to finish a run if manually started.

        Does NOT reset the index of the run,
        i.e. ``f_restore_default`` should be called manually if desired.

        Does NOT store any data (except meta data) so you have to call
        ``f_store`` manually before to avoid data loss.

        :param store_meta_data:

            If meta data like the runtime should be stored

        :param clean_up:

            If data added during the run should be cleaned up.
            Only works if ``turn_into_run`` was set to ``True``.
Can be called to finish a run if manually started .