diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2013-01-26 16:51:43 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2013-01-26 16:51:43 -0500 |
commit | 49cdd1fa5e4eb43a5cf92d7c5f6c88e9b5794b61 (patch) | |
tree | d7fbbd6c3f94fbe3cca08f81978dae76ed4b3635 /scilo_create.py | |
parent | 3fac599fa1257dafbd12ccd2aa7844051fcb2bf2 (diff) | |
download | scilo-49cdd1fa5e4eb43a5cf92d7c5f6c88e9b5794b61.tar.gz |
Replacing test.py
Diffstat (limited to 'scilo_create.py')
-rwxr-xr-x | scilo_create.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scilo_create.py b/scilo_create.py new file mode 100755 index 0000000..0f84cea --- /dev/null +++ b/scilo_create.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +import argparse +import scilo + +def main(): + parser = argparse.ArgumentParser(description='Generate scientific workflow structure') + parser.add_argument('-c', '--copy-only', default=True, action='store_false', required=False, + help='Do not move original data') + parser.add_argument('-o', '--output-dir', type=str, required=True, + help='Where to store aggregated data, caches, results') + parser.add_argument('input_files', type=str, nargs='*', + help='Example: /path/to/data/*.extension') + arguments = parser.parse_args() + + if not arguments.input_files: + print('Please specify files to aggregate') + exit(1) + + dataset = scilo.scilo(arguments.output_dir) + dataset.aggregate(arguments.input_files, move=arguments.copy_only) + +if __name__ == "__main__": + main() + |