Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: pipe snaphu's logging through the logging module #15

Open
scottstanie opened this issue Dec 21, 2023 · 0 comments
Open

Comments

@scottstanie
Copy link
Contributor

scottstanie commented Dec 21, 2023

The current version runs snaphu in a subprocess and only captures stderr. Snaphu's logging all goes to stdout:

$ python test_conncomp_regrow.py > std_out.log
(mapping-311) staniewi:snaphu-py$ cat std_out.log
$ cat std_out.log

snaphu v2.0.6
19 parameters input from file /var/folders/hw/sj9hl8555s36n00t812twvcr0000gq/T/tmpl49af4b1/snaphu.conf (19 lines total)
Creating temporary directory /var/folders/hw/sj9hl8555s36n00t812twvcr0000gq/T/tmpl49af4b1/snaphu_tiles_23572
Unwrapping tile at row 0, column 0 (pid 23575)
Unwrapping tile at row 0, column 1 (pid 23577)
... (etc)

It would be nice to pipe this through python's logging so the application calling snaphu has better control of the formatting/location of the logs.

Multiple possible solutions here: https://stackoverflow.com/questions/4417546/constantly-print-subprocess-output-while-process-is-running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant