Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
XRD
darfix
Commits
847c0195
Commit
847c0195
authored
Jul 20, 2021
by
Julia Garriga Ferrer
Browse files
[app][ows_to_script] Add argument for in_disk option when creating Dataset
parent
1a58aa83
Changes
1
Hide whitespace changes
Inline
Side-by-side
darfix/app/ows_to_script.py
View file @
847c0195
...
...
@@ -88,6 +88,12 @@ if __name__ == '__main__':
help='List of filenames to read',
type=str,
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:])
...
...
@@ -102,7 +108,7 @@ if __name__ == '__main__':
dataset = Dataset(_dir=_dir,
first_filename=options.first_filename,
filenames=options.filenames,
copy_files=True)
copy_files=True
, in_memory=not options.in_disk
)
main(input_data=(dataset, None, None, None), channel='dataset')
"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment