Skip to content

Use astropy in mktrace#37

Open
nden wants to merge 1 commit into
spacetelescope:masterfrom
nden:mktrace-use-astropy
Open

Use astropy in mktrace#37
nden wants to merge 1 commit into
spacetelescope:masterfrom
nden:mktrace-use-astropy

Conversation

@nden

@nden nden commented Apr 13, 2018

Copy link
Copy Markdown
Collaborator

Use astropy.modeling to fit a Gaussian instead of nmpfit which is deprecated.

Also PEP 8 and other common sense changes.

@SaOgaz SaOgaz mentioned this pull request Aug 3, 2018
3 tasks
@SaOgaz

SaOgaz commented Aug 21, 2018

Copy link
Copy Markdown
Contributor

@nden, the mktrace tests are setup in that testing_plus branch! Ready for use. And for official records sake I'll write this down here: we got the go ahead from the STIS team to put this change in with the testing updates and Python 3 only changes.

@pllim

pllim commented Apr 1, 2020

Copy link
Copy Markdown
Contributor

Needs a rebase. Also, I am removing nmpfit from stsci.tools, so this should go in sooner than later.

@pllim pllim requested a review from stscirij April 1, 2020 21:06
sean-lockwood added a commit that referenced this pull request Jan 29, 2025
Remove dependence on deprecated stsci.tools.gfit Gaussian fitting; replace with Astropy fitting.
Allow for scipy API change for scipy.signal.boxcar to scipy.signal.windows.boxcar.
Changed Gaussian fitting initial guess to peak.
Aggregate Astropy fitting warnings (with ierr > 4 into a single warning for each call of Trace.gFitTrace().
Set data types to Float as they are created rather than after, avoiding conversions.
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.

3 participants