(self, root_dir=DEFAULT_ROOT_DIR)
| 8 | |
| 9 | class DataSampler: |
| 10 | def __init__(self, root_dir=DEFAULT_ROOT_DIR): |
| 11 | self.root_dir = root_dir |
| 12 | self.input_params_files = list(Path(self.root_dir).glob("*.json")) |
| 13 | self.zh_rap_lora_input_params_files = list(Path(ZH_RAP_LORA_ROOT_DIR).glob("*.json")) |
| 14 | self.zh_rap_lora_input_params_files += list(Path(ZH_RAP_LORA_ROOT_DIR).glob("*.json")) |
| 15 | |
| 16 | def load_json(self, file_path): |
| 17 | with open(file_path, "r", encoding="utf-8") as f: |
nothing calls this directly
no outgoing calls
no test coverage detected