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

LIRASignificanceEstimator #57

Merged
merged 11 commits into from
Jun 21, 2022
Merged

LIRASignificanceEstimator #57

merged 11 commits into from
Jun 21, 2022

Conversation

infinitron
Copy link
Collaborator

@infinitron infinitron commented Jun 16, 2022

This PR adds a new class called LIRASignificanceEstimator to estimate the statistical significance of emission in user-specified regions. This class exposes a method called estimate_p_values which returns a dictionary with an upper bound on the p-value for each region. plot_xi_dist produces a figure similar to Fig. 3 in Stein et al. 2015.

@infinitron infinitron requested a review from adonath June 16, 2022 05:35
@adonath
Copy link
Collaborator

adonath commented Jun 16, 2022

Thanks @infinitron, this is very nice functionality! My proposal would be to get this in as fast as possible and later we can improve docs and tests. So the minimal thing to do here for now is run locally:

tox -e codestyle

This will highlight all the code style issues, which you can fix locally, push again and then the CI build should turn green...

Copy link
Collaborator

@adonath adonath left a comment

Choose a reason for hiding this comment

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

Thanks @infinitron! It would be good to add some more documentation, but this can be done any time in future. I opened a reminder issue here #58

Otherwise looks good!

@adonath adonath merged commit a234945 into astrostat:main Jun 21, 2022
@adonath adonath added the enhancement New feature or request label Jul 21, 2022
@adonath adonath added this to the v0.2 milestone Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants