def apply_overrides(self, config_files): """Apply configuration overrides. Parameters ---------- config_files : list The list of configuration file paths. """ slew = Slew() ModelHelper.load_config(slew, config_files) model = ModelHelper(slew) return model
class SlewTest(unittest.TestCase): def setUp(self): self.slew = Slew() self.slew_conf = SALPY_scheduler.scheduler_slewConfigC() def test_basic_information_from_creation(self): self.assertEqual(len(self.slew.prereq_telopticsclosedloop), 7) self.assertEqual(len(self.slew.prereq_readout), 0) def test_string_setting(self): self.slew_conf.prereq_tel_settle = self.slew.get_string_rep("prereq_telsettle") self.assertEqual(self.slew_conf.prereq_tel_settle, "telalt,telaz")
def setUp(self): self.slew = Slew() self.slew_conf = SALPY_scheduler.scheduler_slewConfigC()
def __init__(self): """Initialize the class. """ ModelHelper.__init__(self, Slew())