Skip to content

Add helper functions to enable and disable BURBLE to print diagnostics. #45

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

Merged
merged 2 commits into from
Jun 21, 2022

Conversation

eriknw
Copy link
Member

@eriknw eriknw commented Jun 11, 2022

Adds enable_burble and disable_burble. I want approval before merging this. Heh, I couldn't help myself: burbling is too fun a name to pass up!

We could also have this as e.g.

>>> from suitesparse_graphblas import burble
>>> burble.enable()
>>> # Do stuff
>>> burble.disable()
>>> with burble:
...     # Do some more stuff

Is it worth it as a context manager? Should it restore to the previous value or GxB_BURBLE instead of disabling it?

@eriknw eriknw requested review from michelp and jim22k June 11, 2022 05:19
@eriknw
Copy link
Member Author

eriknw commented Jun 15, 2022

@jim22k voted to have burble as an object with burble.enable(), burble.disable(), and the ability to be used as a context manager, so I updated the PR to do this.

@eriknw eriknw merged commit a62a059 into GraphBLAS:main Jun 21, 2022
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.

1 participant