def __init__(self, projects, d=None, project_map=None):
        """
        Parameters
        ----------
        projects: ProjectConfig
            The project configuration
        d: dict
            An alternative dictionary to initialize from. If not given, the
            experiments are loaded on the fly from the :attr:`exp_files`
            attribute
        project_map: dict
            A mapping from project to experiments. If not given, it is created
            when accessing the :attr:`project_map` experiment
        """
        super(ExperimentsConfig, self).__init__()
        self.projects = projects
        # necessary switch for python 2 since the item is accessed when setting
        # it
        self._initialized = False
        self._project_map = project_map or defaultdict(list)
        if projects:
            if d is not None:
                for key, val in d.items():
                    self[key] = val
            else:
                # setup the paths for the experiments
                for key, val in self.exp_files.items():
                    self[key] = val
        del self._initialized
def __init__ ( self , projects , d = None , project_map = None ) : super ( ExperimentsConfig , self ) . __init__ ( ) self . projects = projects self . _initialized = False self . _project_map = project_map or defaultdict ( list ) if projects : if d is not None : for key , val in d . items ( ) : self [ key ] = val else : for key , val in self . exp_files . items ( ) : self [ key ] = val del self . _initialized
Parameters
        ----------
        projects: ProjectConfig
            The project configuration
        d: dict
            An alternative dictionary to initialize from. If not given, the
            experiments are loaded on the fly from the :attr:`exp_files`
            attribute
        project_map: dict
            A mapping from project to experiments. If not given, it is created
            when accessing the :attr:`project_map` experiment