diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-01-08 10:52:54 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-01-08 10:52:54 +0100 |
| commit | 33a81c019dc39122189fb1dac6e9186ac08382d3 (patch) | |
| tree | e8ab0192ae95505dafaf954423e54d8b6c246865 /cli/app/utils | |
| parent | 41575d512f2c4a79c8909da02f7953bdaef674d1 (diff) | |
reprocess
Diffstat (limited to 'cli/app/utils')
| -rw-r--r-- | cli/app/utils/cortex_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/app/utils/cortex_utils.py b/cli/app/utils/cortex_utils.py index 01b4bc9..5e1e659 100644 --- a/cli/app/utils/cortex_utils.py +++ b/cli/app/utils/cortex_utils.py @@ -27,7 +27,7 @@ def download_cortex_files(opt_folder_id): fetch_file(row['url'], fp_out_image) return rows -def find_unprocessed_files(files): +def find_unprocessed_files(files, reprocess=False): """Find files that haven't been processed yet. This is implied if no matching generated file is found. """ @@ -42,7 +42,7 @@ def find_unprocessed_files(files): if file['generated'] == 0 and file['processed'] == 0 and file['datatype'] == 'image': fn, ext = os.path.splitext(file['name']) dataset = fn.split('-')[0] - if dataset not in datasets: + if dataset not in datasets or reprocess == True: unprocessed_files.append(file) return unprocessed_files |
