def test_all(self): json_path = os.path.join(self.path, 'test_configs.json') with open(json_path, 'w') as f: f.write(json.dumps(dict(name='a', t=1, _t=2))) cfg_a = BaseConfig(json_path) cfg_b = all(BaseConfig, self.path)[0] self.assertTrue(cfg_a == cfg_b)
def allcfgs(): return configs.all(configs.BaseConfig, configs.env.getdir(configs.env.paths.model_cfgs_folder))
def all(): return configs.all( Run, configs.env.getdir(configs.env.paths.run_cfgs_folder))
def allcfgs(): return [ more(cfg) for cfg in configs.all( configs.BaseConfig, configs.env.getdir(configs.env.paths.dataset_cfgs_folder)) ]