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

Added Median for background estimation #15

Merged
merged 4 commits into from
Mar 2, 2020

Conversation

siddharthlal25
Copy link
Member

Added median statistic for background estimation as mentioned in issue #12

@giordano
Copy link
Member

This PR seems to be based on #14? Could you please start a branch out of master?

@siddharthlal25
Copy link
Member Author

This PR uses the function sigma_clip which is implemented in PR #14 so I have based it on sigma branch.

@mileslucas
Copy link
Member

Right. This makes managing PRs much harder for us. Now we have to keep in mind that we can't merge this without merging the sigma-clip method. PRs should usually be based on the current upstream master.

Copy link
Member

@mileslucas mileslucas left a comment

Choose a reason for hiding this comment

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

Please don't use the sigma clipping inside these methods. I explicitly didn't put it into the Mean estimator for a reason.

Even though astropy does this, it seems counter-intuitive to me.

If I want to sigma clip my data before processing it, I should just sigma clip my data before processing it ie

bkg = estimate_background(Mean, sigma_clip(data))

Does this make sense?

When you remove all the sigma clipping you should also be able to work on this independent of #14

@siddharthlal25
Copy link
Member Author

Understood, I will remove the instances of sigma clipping from the median part and rebase it on the current master branch. 🙂

Copy link
Member

@mileslucas mileslucas left a comment

Choose a reason for hiding this comment

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

One last change and otherwise LGTM

src/Background/stat_estimators.jl Outdated Show resolved Hide resolved
@mileslucas mileslucas merged commit c1588e4 into JuliaAstro:master Mar 2, 2020
@mileslucas mileslucas mentioned this pull request Mar 2, 2020
6 tasks
@siddharthlal25 siddharthlal25 deleted the median branch March 3, 2020 05:14
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.

None yet

3 participants