MCPcopy Create free account
hub / github.com/catboost/catboost / _extract

Function _extract

catboost/python-package/catboost/datasets.py:17–24  ·  view source on GitHub ↗
(src_file, dst_dir='.')

Source from the content-addressed store, hash-verified

15
16
17def _extract(src_file, dst_dir='.'):
18 cur_dir = os.getcwd()
19 os.chdir(dst_dir)
20 try:
21 with tarfile.open(src_file, 'r:gz') as f:
22 f.extractall()
23 finally:
24 os.chdir(cur_dir)
25
26
27def _calc_md5(path):

Callers 1

_download_datasetFunction · 0.85

Calls 1

openMethod · 0.45

Tested by

no test coverage detected