Commit 847c0195 authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[app][ows_to_script] Add argument for in_disk option when creating Dataset

parent 1a58aa83
...@@ -88,6 +88,12 @@ if __name__ == '__main__': ...@@ -88,6 +88,12 @@ if __name__ == '__main__':
help='List of filenames to read', help='List of filenames to read',
type=str, type=str,
default=None) default=None)
parser.add_argument(
'--in-disk',
help='Do not load data into memory',
dest="in_disk",
action="store_true",
default=None)
options = parser.parse_args(sys.argv[1:]) options = parser.parse_args(sys.argv[1:])
...@@ -102,7 +108,7 @@ if __name__ == '__main__': ...@@ -102,7 +108,7 @@ if __name__ == '__main__':
dataset = Dataset(_dir=_dir, dataset = Dataset(_dir=_dir,
first_filename=options.first_filename, first_filename=options.first_filename,
filenames=options.filenames, filenames=options.filenames,
copy_files=True) copy_files=True, in_memory=not options.in_disk)
main(input_data=(dataset, None, None, None), channel='dataset') main(input_data=(dataset, None, None, None), channel='dataset')
""" """
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment