Skip to content
Snippets Groups Projects
Commit 330643ff authored by Eva Bardou's avatar Eva Bardou :frog: Committed by Yoann Schneider
Browse files

Crash with an explicit message when no data was extracted

parent 3f5a828d
No related branches found
No related tags found
1 merge request!77Crash with an explicit message when no data was extracted
Pipeline #144526 passed
......@@ -192,6 +192,10 @@ class DataGenerator:
for parent_element in get_children(folder_id, type=self.select.parent_type):
self.process_parent(parent_element, partition)
assert sum(
len(partition.values()) for partition in self.data.values()
), "No data was extracted from all three train/validation/test folders."
self.export()
export_parameters(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment