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

Improve reflected background region finder #1616

merged 4 commits into from Aug 1, 2018


2 participants

registerrier commented Aug 1, 2018

this PR proposes a solution to issue #1449 by adding an optional parameter to take only the first max_region_number regions that come out of the algorithm.

The PR also corrects a bug that could allow the user to create an infinite loop by passing an increment_angle equal to 0.


@registerrier - Thanks!

One suggestion inline above.

Another one would be to improve a little bit by using this option, and adding links in the text at the top of that page to gammapy.background.ReflectedRegionsFinder so that one can quickly go back and forth between that example page and the API docs.

Finally, it's hard to review this PR locally, because there's fails concerning tevcat_exclusion.fits that was removed a few hours ago. If you want to make that simpler for me, you could rebase this branch against upstream master.

Show outdated Hide outdated gammapy/background/

@cdeil cdeil changed the title from Correct reflected bkg to Improve reflected background region finder Aug 1, 2018


cdeil approved these changes Aug 1, 2018


@cdeil cdeil merged commit 19d5746 into gammapy:master Aug 1, 2018

0 of 2 checks passed

continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
continuous-integration/travis-ci/pr The Travis CI build is in progress

Spectrum analysis (1D) automation moved this from To do to Done Aug 1, 2018


This comment has been minimized.

Show comment
Hide comment

cdeil Aug 1, 2018


Small follow-up in master: 783f660, 7d7f4c3


cdeil commented Aug 1, 2018

Small follow-up in master: 783f660, 7d7f4c3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment