Skip to content

Remove printing of summary messages when the library is run in QUIET mode #1

@maxieds

Description

@maxieds

I noticed doing more testing today that the original code for GTFold prints a lot of extra summary messages to the console for the historical command line utility version of the software. This is annoying in practice and creates extraneous stdout messages when we are trying to run several operations from within Python. For example, running GTFP.SampleBoltzmannStructures(...) at minimum produces a subset of the following output:

Computing stochastic traceback...
Partition Function Value: nan
D2 Traceback initialization (partition function computation) running time: 0.075484 seconds
Stochastic Traceback: Thread count for counts parallelization:   1 

Sampling structures...

Scatter plot frequency data for stochastic samples, saved to /Users/mschmidt34/TestGTFoldPython/scatterplot.frequency

Stochastic samples saved to /Users/mschmidt34/TestGTFoldPython/sampleout.samples
D2 Traceback computation running time: 0.021558 seconds

Eventually I am going to need to go into the original GTFold sources included with the Python bindings sources at "mute" this output when run in QUIET mode, e.g., after setting GTFP.Config(quiet=1). I am cataloging this as an issue to now as a reminder for a task to pick up when I have more free time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions