Skip to content

Update GaussianAbsorption1D #6195

Description

@astrofrog

The GaussianAbsorption1D needs to be updated in one of two ways:

  • Either the continuum level should be made a parameter so that the model can be used with units

or

  • The model should be deprecated if we think no one is using it

See https://github.com/astropy/astropy/pull/6183/files#r121763241 for some discussion.

Activity

  1. added this to the v2.0.0 milestone on Jun 13, 2017
  2. pllim commented on Jun 14, 2017

    @pllim
    Member

    I just blasted astropy-dev mailing list about this. I propose we just deprecate it if we don't hear strong objection by Friday. AFAIK no one is using it and I didn't find it terribly useful with composite model and unit support now.

  3. astrofrog commented on Jun 14, 2017

    @astrofrog
    MemberAuthor

    @pllim is... THE DEPRECATOR 😆

  4. pllim commented on Jun 14, 2017

    @pllim
    Member

    "I'll be back!"

    Terminator

  5. adrn commented on Jun 14, 2017

    @adrn
    Member

    👍 to deprecate + remove!

  6. bsipocz commented on Jun 14, 2017

    @bsipocz
    Member

    Having a quick github search, it seems that a few people are using it, most notably https://github.com/spacetelescope/specview
    However they should get plenty of warning with the deprecation, so 👍 to go for it.

  7. pllim commented on Jun 14, 2017

    @pllim
    Member

    "specview" is defunct, so don't worry about it. 😄

  8. hamogu commented on Jun 14, 2017

    @hamogu
    Member

    It is a common use case to fit absorption lines, but as the linked discussion above points out this can be done as constant - absorption model. Maybe this can be one example in the docs? It's a common use case, and the deprecation warning could even point to it.

    (As an aside, this issue is exactly why I have not used astropy models in any science or production code: It just changes too fast, so I have to spend too much time just to keep up with astropy changes. I hope that settles down after 2.0.)

  9. pllim commented on Jun 15, 2017

    @pllim
    Member

    @hamogu , Python itself changes too. You can always pin your Astropy requirement to a LTS until you have time to catch up. As discussed in the given link above, GaussianAbsorption1D as-is cannot support units. And I did mention that you can use Const1D - Gaussian1D in the deprecation message. Hope this clarifies the issue.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions