Commit a3b39402 authored by Agata Malgorzata Chadaj's avatar Agata Malgorzata Chadaj
Browse files

wip

parent a3d5b85c
Pipeline #3168239 canceled with stage
......@@ -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:')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment