MHCXGraph.core.pdb_graph_builder.capture_c_stderr

MHCXGraph.core.pdb_graph_builder.capture_c_stderr(logger)[source]

Capture stderr output from C libraries and redirect it to logging.

Parameters:

logger (logging.Logger) – Logger instance used to record intercepted messages.

Yields:

None – Context manager that temporarily redirects the C-level standard error stream.

Notes

This utility is primarily used to intercept verbose output from FreeSASA and forward it to the project logging system.