pypet/trajectory.py
def f_start_run(self, run_name_or_idx=None, turn_into_run=True):
        """ Can be used to manually allow running of an experiment without using an environment.

        :param run_name_or_idx:

            Can manually set a trajectory to a particular run. If `None` the current run
            the trajectory is set to is used.

        :param turn_into_run:

            Turns the trajectory into a run, i.e. reduces functionality but makes storing
            more efficient.

        """
        if self._run_started:
            return self

        if run_name_or_idx is None:
            if self.v_idx == -1:
                raise ValueError('Cannot start run if trajectory is not set to a particular run')
        else:
            self.f_set_crun(run_name_or_idx)

        self._run_started = True

        if turn_into_run:
            self._make_single_run()

        self._set_start()

        return self
def f_start_run(self, run_name_or_idx=None, turn_into_run=True):
        if self._run_started:
            return self

        if run_name_or_idx is None:
            if self.v_idx == -1:
                raise ValueError('Cannot start run if trajectory is not set to a particular run')
        else:
            self.f_set_crun(run_name_or_idx)

        self._run_started = True

        if turn_into_run:
            self._make_single_run()

        self._set_start()

        return self
def f_start_run ( self , run_name_or_idx = None , turn_into_run = True ) : if self . _run_started : return self if run_name_or_idx is None : if self . v_idx == - 1 : raise ValueError ( 'Cannot start run if trajectory is not set to a particular run' ) else : self . f_set_crun ( run_name_or_idx ) self . _run_started = True if turn_into_run : self . _make_single_run ( ) self . _set_start ( ) return self
Can be used to manually allow running of an experiment without using an environment.

        :param run_name_or_idx:

            Can manually set a trajectory to a particular run. If `None` the current run
            the trajectory is set to is used.

        :param turn_into_run:

            Turns the trajectory into a run, i.e. reduces functionality but makes storing
            more efficient.
Can be used to manually allow running of an experiment without using an environment .