Lines Matching full:settings
2 """Module to get the settings from experiment file."""
11 class Settings(object): class
12 """Class representing settings (a set of fields) from an experiment file."""
20 def SetParentSettings(self, settings): argument
21 """Set the parent settings which these settings can inherit from."""
22 self.parent = settings
32 raise SyntaxError("'%s' is not a valid field in '%s' settings" %
42 raise SyntaxError("Field '%s' not a valid field in '%s' settings." %
46 raise SyntaxError("Required field '%s' not defined in '%s' settings." %
51 """Inherit any unset values from the parent settings."""
57 def Override(self, settings): argument
58 """Override settings with settings from a different object."""
59 for name in settings.fields:
60 if name in self.fields and settings.fields[name].assigned:
61 self.fields[name].Set(settings.GetField(name), parse=False)