Skip to content

Commit

Permalink
added named_configs to ex.run() interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwlouse committed Sep 12, 2014
1 parent a7ec27e commit cddc64e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sacred/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,20 +191,23 @@ def get_info(self):
dependencies=self.dependencies.items(),
doc=self.doc)

def run(self, config_updates=None, loglevel=None):
def run(self, config_updates=None, named_configs=(), loglevel=None):
"""
Run the main function of the experiment.
:param config_updates: Changes to the configuration as a nested
dictionary
:type config_updates: dict
:param named_configs: list of names of named_configs to use
:type named_configs: list
:param loglevel: Changes to the log-level for this run.
:type loglevel: int | str
:return: The result of the main function.
"""
return self.run_command(self.default_command,
config_updates=config_updates,
named_configs_to_use=named_configs,
loglevel=loglevel)

def run_commandline(self, argv=None):
Expand Down

0 comments on commit cddc64e

Please sign in to comment.