pypet/pypetlogging.py
def _handle_config_parsing(self, log_config):
        """ Checks for filenames within a config file and translates them.

        Moreover, directories for the files are created as well.

        :param log_config: Config file as a stream (like StringIO)

        """
        parser = NoInterpolationParser()
        parser.readfp(log_config)

        rename_func = lambda string: rename_log_file(string,
                                                     env_name=self.env_name,
                                                     traj_name=self.traj_name,
                                                     set_name=self.set_name,
                                                     run_name=self.run_name)

        sections = parser.sections()
        for section in sections:
            options = parser.options(section)
            for option in options:
                if option == 'args':
                    self._check_and_replace_parser_args(parser, section, option,
                                                        rename_func=rename_func)
        return parser
def _handle_config_parsing(self, log_config):
        parser = NoInterpolationParser()
        parser.readfp(log_config)

        rename_func = lambda string: rename_log_file(string,
                                                     env_name=self.env_name,
                                                     traj_name=self.traj_name,
                                                     set_name=self.set_name,
                                                     run_name=self.run_name)

        sections = parser.sections()
        for section in sections:
            options = parser.options(section)
            for option in options:
                if option == 'args':
                    self._check_and_replace_parser_args(parser, section, option,
                                                        rename_func=rename_func)
        return parser
def _handle_config_parsing ( self , log_config ) : parser = NoInterpolationParser ( ) parser . readfp ( log_config ) rename_func = lambda string : rename_log_file ( string , env_name = self . env_name , traj_name = self . traj_name , set_name = self . set_name , run_name = self . run_name ) sections = parser . sections ( ) for section in sections : options = parser . options ( section ) for option in options : if option == 'args' : self . _check_and_replace_parser_args ( parser , section , option , rename_func = rename_func ) return parser
Checks for filenames within a config file and translates them.

        Moreover, directories for the files are created as well.

        :param log_config: Config file as a stream (like StringIO)
Checks for filenames within a config file and translates them .