fitbenchmarking.utils.output_grabber module

This file will capture output that would be printed to the terminal

class fitbenchmarking.utils.output_grabber.OutputGrabber(options)

Bases: object

Class used to grab outputs for stdout and stderr

class fitbenchmarking.utils.output_grabber.StreamGrabber(stream)

Bases: object

Class used to grab an output stream.

escape_char = '\x08'
readOutput()

Read the stream data (one byte at a time) and save the text in capturedtext.

start()

Start capturing the stream data.

stop()

Stop capturing the stream data and save the text in capturedtext.