read_structure_step.formats.xyz package#

Submodules#

read_structure_step.formats.xyz.xyz module#

Implementation of the reader for XYZ files using OpenBabel

class read_structure_step.formats.xyz.xyz.OutputGrabber(stream=None, threaded=False)[source]#

Bases: object

Class used to grab standard output or another stream.

see https://stackoverflow.com/questions/24277488/in-python-how-to-capture-the-stdout-from-a-c-shared-library-to-a-variable/29834357#29834357 # noqa: E501

escape_char = '\x08'#
readOutput()[source]#

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

start()[source]#

Start capturing the stream data.

stop()[source]#

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

Module contents#