Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LHCData
lhc-sm-hwc
Commits
a3b39402
Commit
a3b39402
authored
Oct 26, 2021
by
Agata Malgorzata Chadaj
Browse files
wip
parent
a3d5b85c
Pipeline
#3168239
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CI/send_results.py
View file @
a3b39402
...
...
@@ -5,7 +5,6 @@ import argparse
from
nbformat.v4
import
nbformat
from
lhcsmnb
import
outputs
,
parameters
from
outputs
import
CellOutputType
def
_get_arg_parser
():
"""Specifies script arguments. Returns parser.
...
...
@@ -24,7 +23,7 @@ def get_result():
result_nb
=
nbformat
.
read
(
result_path
,
as_version
=
4
)
nb
=
outputs
.
NotebookOutput
(
result_nb
)
try
:
result
=
nb
.
get_cell_by_tag
(
'result'
)[
0
].
get_cell_output
(
CellOutputType
.
STDOUT
)[
0
]
result
=
nb
.
get_cell_by_tag
(
'result'
)[
0
].
get_cell_output
(
outputs
.
CellOutputType
.
STDOUT
)[
0
]
except
IndexError
:
result
=
'FAILED'
print
(
'RESULT:'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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