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
csst-pipeline
csst_common
Commits
58d479f8
Commit
58d479f8
authored
Nov 08, 2022
by
BO ZHANG
🏀
Browse files
added fr.is_good() to check existence of alleged files
parent
873890aa
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/file_recorder.py
View file @
58d479f8
...
@@ -97,3 +97,7 @@ class FileRecorder(list):
...
@@ -97,3 +97,7 @@ class FileRecorder(list):
return
f
"
{
len
(
self
)
}
alleged, "
\
return
f
"
{
len
(
self
)
}
alleged, "
\
f
"
{
len
(
self
)
-
sum
(
self
.
to_table
()[
'existence'
])
}
missing, "
\
f
"
{
len
(
self
)
-
sum
(
self
.
to_table
()[
'existence'
])
}
missing, "
\
f
"
{
sum
(
self
.
to_table
()[
'existence'
])
}
to db"
f
"
{
sum
(
self
.
to_table
()[
'existence'
])
}
to db"
def
is_good
(
self
):
""" Check if all alleged files exist. """
return
all
(
self
.
to_table
()[
'existence'
])
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