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

WIP: Discussion PR on SpectrumCollections decorator #471

Closed
wants to merge 2 commits into from

Conversation

SaOgaz
Copy link
Contributor

@SaOgaz SaOgaz commented Jun 19, 2019

Hi all,

@eteq and I had an offline discussion during my work on the resample code about how we want to work in analysis on spectrum collections. I advocated for a decorator. I've done an example of what I had in mind here that runs on my resample class. @eteq had an alternate suggestion that I'm now blanking on.

I like the decorator approach as it seems a little easier to follow for users trying to track what's going on with the code, but this PR is definitely meant for discussion!

@nmearl
Copy link
Contributor

nmearl commented Jun 19, 2019

Am I missing it? I don't see a decorator example in the code?

@SaOgaz
Copy link
Contributor Author

SaOgaz commented Jun 19, 2019

@nmearl it would probably help if I included the commit, LOL

@SaOgaz
Copy link
Contributor Author

SaOgaz commented Jun 19, 2019

Oh, another note, @eteq suggested putting the decorator in the SpectrumCollections class as a static method. I'm not sure I'm convinced of this. I feel like it makes the decorator call kind of awkward.

@nmearl
Copy link
Contributor

nmearl commented Jun 19, 2019

Can you provide an example of using this decorator?

@SaOgaz
Copy link
Contributor Author

SaOgaz commented Jun 19, 2019

It's in there.... in the resample function: https://github.com/astropy/specutils/pull/471/files#diff-64489eca25a7793c6b98cd48fa905511R125

There's also a test in the test_resample that uses it this way, although it needs to be finished, as right now it's just making sure it runs without crashing.

@nmearl nmearl added this to the v0.7.0 milestone Sep 12, 2019
@eteq eteq modified the milestones: v0.7, v0.8 Jan 4, 2020
@eteq eteq modified the milestones: v0.8, v1.x Dec 7, 2020
Base automatically changed from master to main March 22, 2021 15:52
@pllim pllim closed this Feb 18, 2022
@pllim
Copy link
Member

pllim commented Feb 18, 2022

This PR is stale and author no longer works at STScI.

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

4 participants