Skip to content

Commit 1d3de82

Browse files
Update logging and return value (#74)
* Update logging and return value - Log result with source path - Return source path instead of result * feat(ingester): add local_dir parameter to ingester - Added local_dir to the ingester method. --------- Co-authored-by: Haihui.Wang <[email protected]>
1 parent f6747f7 commit 1d3de82

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

data_engine/ingester/csghub_ingester.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ def ingest(self) -> Union[Path, None]:
4747
repo_type=REPO_TYPE_DATASET,
4848
revision=self.branch,
4949
cache_dir=self._src_path,
50+
local_dir=self._src_path,
5051
endpoint=endpoint,
5152
token=self.user_token
5253
)
53-
logger.info(f'result:{result}')
54-
return result
54+
logger.info(f"result: {result}, _src_path: {self._src_path}")
55+
return self._src_path
5556
else:
5657
logger.info(f'Using local path: {self._src_path}')
5758
return self._src_path

0 commit comments

Comments
 (0)