Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Data Generator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Automatic Text Recognition
Data Generator
Commits
330643ff
Commit
330643ff
authored
1 year ago
by
Eva Bardou
Committed by
Yoann Schneider
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Crash with an explicit message when no data was extracted
parent
3f5a828d
No related branches found
Branches containing commit
No related tags found
1 merge request
!77
Crash with an explicit message when no data was extracted
Pipeline
#144526
passed
1 year ago
Stage: release
Changes
1
Pipelines
52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
atr_data_generator/extract/base.py
+4
-0
4 additions, 0 deletions
atr_data_generator/extract/base.py
with
4 additions
and
0 deletions
atr_data_generator/extract/base.py
+
4
−
0
View file @
330643ff
...
...
@@ -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
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment