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

(Re)added functionality to process datacubes. Includes testing. Rebased. #687

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

fdeugenio
Copy link
Contributor

Added functionality to do aperture photometry on datacubes. This is useful to create single aperture or slit spectra from an integral field spectroscopy datacube.

Rebased on most recent master as per @larrybradley 's comment. Passes all local tests.

Fixed a python2.7 compatibility issue.

@fdeugenio fdeugenio changed the title Re( (Re)added functionality to process datacubes. Includes testing. Rebased. Jul 3, 2018
# THIS TEST HAS BEEN DONE.
@pytest.mark.parametrize(('aperture_class', 'params'), TEST_APERTURES)
def test_outside_array(aperture_class, params):
data = np.ones((100, 10, 10), dtype=np.float)
Copy link
Member

Choose a reason for hiding this comment

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

I wonder whether much simplification (and removing this duplication of tests) can be done by parametrizing the input data array, too, one for the 2D and one for the cube case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes indeed, I need some time to do that though.

Base automatically changed from master to main March 16, 2021 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants