Use sig_block to avoid conflict signal handle#41209
Conversation
|
@user202729 Can you help me review this. It is a minor improvement |
|
add a test that would have failed without the change. |
|
Documentation preview for this PR (built with commit 82ad7ea; changes) is ready! 🎉 |
|
I will wait for #40980 merge |
|
@user202729 Please review this. Thank you. |
| (1.418, 0.01) | ||
| (1.418, 0.01) | ||
|
|
||
| Ensure :issue:`30379` is fixed for monte_carlo_integral (c_monte_carlo_f):: |
There was a problem hiding this comment.
Format function name as :func:`...`. Same for above.
There was a problem hiding this comment.
And please mark the test as # long time since the CI is warning about it
|
Otherwise, more or less correct. There's this case but probably not worth it to add a try/except. (if anything, I think the right behavior ought to be use a The |
| Ensure :issue:`30379` is fixed for monte_carlo_integral (c_monte_carlo_f):: | ||
|
|
||
| sage: def f(x, y): return gamma_inc(2, 11/5) * x * y | ||
| sage: for algo in ['plain', 'miser', 'vegas']: # abs tol 0.1 |
|
Looks good, thanks |
sagemathgh-41209: Use sig_block to avoid conflict signal handle <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> Improve sagemath#40980 , there are other two functions are also needs ``sig_block``. It is compatible with sagemath#40980 ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> sagemath#40980 URL: sagemath#41209 Reported by: Chenxin Zhong Reviewer(s): Michael Orlitzky, user202729
sagemathgh-41209: Use sig_block to avoid conflict signal handle <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> Improve sagemath#40980 , there are other two functions are also needs ``sig_block``. It is compatible with sagemath#40980 ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> sagemath#40980 URL: sagemath#41209 Reported by: Chenxin Zhong Reviewer(s): Michael Orlitzky, user202729
Improve #40980 , there are other two functions are also needs
sig_block. It is compatible with #40980📝 Checklist
⌛ Dependencies
#40980