mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-11 11:16:15 +08:00
MAINT: Rebuild example data.
This commit is contained in:
@@ -164,13 +164,15 @@ def main(ctx, rebuild_input):
|
||||
)
|
||||
|
||||
# move the new results to the expected path
|
||||
# note that new_perf_path will be cleaned up dataframe_cache on
|
||||
# exit.
|
||||
shutil.rmtree(expected_perf_path)
|
||||
shutil.copytree(new_perf_path, expected_perf_path)
|
||||
|
||||
with tarfile.open(example_path, 'w|gz') as tar:
|
||||
tar.add(d.getpath('example_data'), 'example_data')
|
||||
# Clear out all the temporary new perf so it doesn't get added to the
|
||||
# tarball.
|
||||
shutil.rmtree(d.getpath('example_data/new_perf/'))
|
||||
|
||||
with tarfile.open(example_path, 'w|gz') as tar:
|
||||
tar.add(d.getpath('example_data'), 'example_data')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user