pypet/brian2/network.py
def pre_build(self, traj):
        """Pre-builds network components.

        Calls :func:`~pypet.brian2.network.NetworkComponent.pre_build` for all components,
        analysers, and the network runner.

        `pre_build` is not automatically called but either needs to be executed manually
        by the user, either calling it directly or by using
        :func:`~pypet.brian2.network.NetworkManager.pre_run`.

        This function does not create a `BRIAN2 network`, but only it's components.

        :param traj: Trajectory container

        """
        self._logger.info('Pre-Building Components')

        for component in self.components:
            component.pre_build(traj, self._brian_list, self._network_dict)

        if self.analysers:

            self._logger.info('Pre-Building Analysers')

            for analyser in self.analysers:
                analyser.pre_build(traj, self._brian_list, self._network_dict)

        self._logger.info('Pre-Building NetworkRunner')
        self.network_runner.pre_build(traj, self._brian_list, self._network_dict)

        self._pre_built = True
def pre_build(self, traj):
        """Pre-builds network components.

        Calls :func:`~pypet.brian2.network.NetworkComponent.pre_build` for all components,
        analysers, and the network runner.

        `pre_build` is not automatically called but either needs to be executed manually
        by the user, either calling it directly or by using
        :func:`~pypet.brian2.network.NetworkManager.pre_run`.

        This function does not create a `BRIAN2 network`, but only it's components.

        :param traj: Trajectory container

        """
        self._logger.info('Pre-Building Components')

        for component in self.components:
            component.pre_build(traj, self._brian_list, self._network_dict)

        if self.analysers:

            self._logger.info('Pre-Building Analysers')

            for analyser in self.analysers:
                analyser.pre_build(traj, self._brian_list, self._network_dict)

        self._logger.info('Pre-Building NetworkRunner')
        self.network_runner.pre_build(traj, self._brian_list, self._network_dict)

        self._pre_built = True
def pre_build ( self , traj ) : self . _logger . info ( 'Pre-Building Components' ) for component in self . components : component . pre_build ( traj , self . _brian_list , self . _network_dict ) if self . analysers : self . _logger . info ( 'Pre-Building Analysers' ) for analyser in self . analysers : analyser . pre_build ( traj , self . _brian_list , self . _network_dict ) self . _logger . info ( 'Pre-Building NetworkRunner' ) self . network_runner . pre_build ( traj , self . _brian_list , self . _network_dict ) self . _pre_built = True
Pre-builds network components.

        Calls :func:`~pypet.brian2.network.NetworkComponent.pre_build` for all components,
        analysers, and the network runner.

        `pre_build` is not automatically called but either needs to be executed manually
        by the user, either calling it directly or by using
        :func:`~pypet.brian2.network.NetworkManager.pre_run`.

        This function does not create a `BRIAN2 network`, but only it's components.

        :param traj: Trajectory container
Pre - builds network components .