Skip to content

Conversation

@dlichy
Copy link

@dlichy dlichy commented Apr 21, 2025

Add functionality to redirect Meshroom logs to the python logger.

@dlichy dlichy requested a review from ebrahimebrahim April 21, 2025 14:36
Copy link
Collaborator

@ebrahimebrahim ebrahimebrahim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, this will be super useful in SlicerOpenLIFU!

The CalledProcessError is also great because we can catch that in SlicerOpenLIFU and handle meshroom failures more gracefully

I like that the MeshRecon logger is separate from the Meshroom logger.

Small change requested

text=True,
**kwargs,
):
"""Run a subprocess and stream its stdout and stderr output to separate handlers."""
Copy link
Collaborator

@ebrahimebrahim ebrahimebrahim Apr 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use a complete docstring here, with all the args laid out such as what check and text mean. Also type annotate the function

Copy link
Collaborator

@ebrahimebrahim ebrahimebrahim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks perfect, thank you!

@ebrahimebrahim ebrahimebrahim force-pushed the issue_279_meshroom_logging branch from 91e1cd6 to 051c257 Compare April 21, 2025 19:25
@ebrahimebrahim ebrahimebrahim enabled auto-merge (rebase) April 21, 2025 19:25
@ebrahimebrahim ebrahimebrahim merged commit 61a5461 into main Apr 21, 2025
9 checks passed
@ebrahimebrahim ebrahimebrahim linked an issue Apr 21, 2025 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

Redirect meshroom logs when calling run_reconstruction

3 participants