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

Pass on keyword arguments for outlier clipping in detrend() #20

Open
ekaterinailin opened this issue Feb 12, 2019 · 0 comments
Open

Pass on keyword arguments for outlier clipping in detrend() #20

ekaterinailin opened this issue Feb 12, 2019 · 0 comments

Comments

@ekaterinailin
Copy link

The keyword arguments outlier_sigma and outlier_mwidth are not passed on into detrend()
I think they should go somewhere in here:

Lines 122 and following:

## Iterative sigma-clipping
        ## ------------------------
        print('Starting initial outlier detection')
        omask = mask & sigma_clip(cflux, max_iter=10, max_sigma=5, mexc=mask)
        ofrac = (~omask).sum() / omask.size
        if ofrac < 0.25:
            mask &= omask
            print('  Flagged %i (%4.1f%%) outliers.' % ((~omask).sum(), 100*ofrac))
        else:
            print('  Found %i (%4.1f%%) outliers. Not flagging.' % ((~omask).sum(), 100*ofrac))

Your maintenance work is very much appreciated!

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

No branches or pull requests

1 participant