def ds_spec(self): if not os.path.isfile(self.ds_yaml_file): return None with open(self.ds_yaml_file) as ds_conf: return [i for i in yaml.load_all(ds_conf)]