Skip to content

Deprecate GaussianAbsorption1D model - #6200

Merged
bsipocz merged 3 commits into
astropy:masterfrom
pllim:deprecate-gaussab1d
Jun 15, 2017
Merged

bsipocz merged 3 commits into
astropy:masterfrom
pllim:deprecate-gaussab1d

Conversation

@pllim

@pllim pllim commented Jun 14, 2017 •

Copy link
Copy Markdown
Member

Note: Only merge if there is no objection by Friday...

Fix #6195

Travis tests on my fork -- https://travis-ci.org/pllim/astropy/builds/243298429

@pllim pllim added this to the v2.0.0 milestone Jun 14, 2017
@pllim
pllim requested review from astrofrog and nden June 14, 2017 16:48
Comment thread CHANGES.rst Outdated
methods. [#6170]

- Deprecated ``GaussianAbsorption1D`` model, as it can be better represented
by subtracting ``Gaussian1D`` from a continuum model. [#6200]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe you can say a Const1D model instead of continuum, and say that this allows better control over the continuum level?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Isn't that too specific? Technically, your continuum can be any model you want, even a blackbody...

Comment thread astropy/modeling/functional_models.py Outdated

# TODO: Don't need BaseGaussian1D anymore when this is removed.
@deprecated(
'2.0', alternative='Gaussian1D and subtract it off continuum model')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Mention Const1D

@astrofrog astrofrog left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just a couple of small comments and otherwise looks good to me.

@pllim

pllim commented Jun 14, 2017 •

Copy link
Copy Markdown
Member Author

@astrofrog , I applied your comments.

@bsipocz

bsipocz commented Jun 15, 2017

Copy link
Copy Markdown
Member

@pllim - There are some conflicts now. Are we still waiting until tomorrow with this?

@pllim
pllim force-pushed the deprecate-gaussab1d branch from fa0c32d to aaf6d8e Compare June 15, 2017 14:56
@pllim

pllim commented Jun 15, 2017

Copy link
Copy Markdown
Member Author

@bsipocz , rebased. Travis is running on my fork; I cancelled the one here on purpose.

@pllim

pllim commented Jun 15, 2017 •

Copy link
Copy Markdown
Member Author

Travis passed on my fork.

As for merging, so far I got one 👍 for this approach and no outright objections (both on GitHub issue and on astropy-dev mailing list). And technically, it is Friday in some parts of the world, so if you want to merge, I think it is okay...

@bsipocz

bsipocz commented Jun 15, 2017

Copy link
Copy Markdown
Member

Let's merge this then. Thanks!

@bsipocz
bsipocz merged commit a2ccc90 into astropy:master Jun 15, 2017
@pllim
pllim deleted the deprecate-gaussab1d branch June 15, 2017 20:19
@nden

nden commented Jun 15, 2017

Copy link
Copy Markdown
Contributor

Representing it as a compound model is fine. But has anyone actually checked that the compound model fitting works in this case? Is there a fitting test?

@pllim

pllim commented Jun 15, 2017

Copy link
Copy Markdown
Member Author

@nden , does this example answer your question? http://synphot.readthedocs.io/en/latest/synphot/tutorials.html#fitting-equivalent-width

It works for me but I haven't tested with the new unit support yet.

@nden

nden commented Jun 15, 2017

Copy link
Copy Markdown
Contributor

Yes, something like this.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants