예제 #1
0
    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)
예제 #2
0
def allcfgs():
    return configs.all(configs.BaseConfig,
                       configs.env.getdir(configs.env.paths.model_cfgs_folder))
예제 #3
0
 def all():
     return configs.all(
         Run, configs.env.getdir(configs.env.paths.run_cfgs_folder))
예제 #4
0
def allcfgs():
    return [
        more(cfg) for cfg in configs.all(
            configs.BaseConfig,
            configs.env.getdir(configs.env.paths.dataset_cfgs_folder))
    ]