Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.pipelines
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.pipelines
Commits
ef0d089b
Commit
ef0d089b
authored
5 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Changed make dirs function
parent
b2f1c962
Branches
Branches containing commit
Tags
v2.0.7
Tags containing commit
1 merge request
!12
Not all functions implement the keyword argument create_directories
Pipeline
#38375
failed
5 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/pipelines/mixins.py
+2
-2
2 additions, 2 deletions
bob/pipelines/mixins.py
with
2 additions
and
2 deletions
bob/pipelines/mixins.py
+
2
−
2
View file @
ef0d089b
...
...
@@ -315,12 +315,12 @@ class CheckpointMixin:
def
save
(
self
,
sample
):
if
isinstance
(
sample
,
Sample
):
path
=
self
.
make_path
(
sample
)
bob
.
io
.
base
.
create_directories_safe
(
os
.
path
.
dirname
(
path
))
os
.
makedirs
(
os
.
path
.
dirname
(
path
)
,
exist_ok
=
True
)
return
self
.
save_func
(
sample
.
data
,
path
)
elif
isinstance
(
sample
,
SampleSet
):
for
s
in
sample
.
samples
:
path
=
self
.
make_path
(
s
)
bob
.
io
.
base
.
create_directories_safe
(
os
.
path
.
dirname
(
path
))
os
.
makedirs
(
os
.
path
.
dirname
(
path
)
,
exist_ok
=
True
)
return
self
.
save_func
(
s
.
data
,
path
)
else
:
raise
ValueError
(
"
Type for sample not supported %s
"
%
type
(
sample
))
...
...
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