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
79d9ec9a
Commit
79d9ec9a
authored
Nov 21, 2022
by
BO ZHANG
🏀
Browse files
add support for empty FileRecorder
parent
17d8078f
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/file_recorder.py
View file @
79d9ec9a
...
@@ -94,6 +94,9 @@ class FileRecorder(list):
...
@@ -94,6 +94,9 @@ class FileRecorder(list):
@
property
@
property
def
summary
(
self
):
def
summary
(
self
):
if
len
(
self
)
==
0
:
return
'0 alleged, 0 missing, 0 to db'
else
:
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"
...
...
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