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

add documentation for reading lower-dimensional objects #834

Merged
merged 9 commits into from
Aug 7, 2022

Conversation

keflavich
Copy link
Contributor

Solves #833

I smuggled in a configuration item - ext=0 is now a keyword arg instead of hard-coding it.

@keflavich keflavich requested a review from e-koch August 5, 2022 18:41
@codecov-commenter
Copy link

codecov-commenter commented Aug 5, 2022

Codecov Report

Merging #834 (ede3260) into master (bebd96a) will increase coverage by 0.30%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##           master     #834      +/-   ##
==========================================
+ Coverage   77.87%   78.17%   +0.30%     
==========================================
  Files          24       24              
  Lines        5863     5921      +58     
==========================================
+ Hits         4566     4629      +63     
+ Misses       1297     1292       -5     
Impacted Files Coverage Δ
spectral_cube/lower_dimensional_structures.py 80.62% <75.00%> (ø)
spectral_cube/io/casa_image.py 66.05% <0.00%> (ø)
spectral_cube/spectral_cube.py 76.53% <0.00%> (+0.04%) ⬆️
spectral_cube/io/fits.py 86.62% <0.00%> (+0.17%) ⬆️
spectral_cube/conftest.py 93.49% <0.00%> (+0.72%) ⬆️
spectral_cube/io/core.py 90.90% <0.00%> (+1.51%) ⬆️
spectral_cube/cube_utils.py 83.07% <0.00%> (+1.63%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@e-koch e-koch left a comment

Choose a reason for hiding this comment

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

Looks good! Just a few text suggestions.

docs/creating_reading.rst Outdated Show resolved Hide resolved
docs/creating_reading.rst Outdated Show resolved Hide resolved
docs/creating_reading.rst Outdated Show resolved Hide resolved
docs/creating_reading.rst Outdated Show resolved Hide resolved
spectral_cube/lower_dimensional_structures.py Show resolved Hide resolved
spectral_cube/lower_dimensional_structures.py Show resolved Hide resolved
@keflavich
Copy link
Contributor Author

This probably ought to be squashed on merge because of all the gh-suggest commits

@keflavich
Copy link
Contributor Author

afaict, the error is unrelated. I'm gonna merge and hope the windows-based, dask-test error just goes away...

@keflavich keflavich merged commit 9739cfd into radio-astro-tools:master Aug 7, 2022
keflavich added a commit to keflavich/spectral-cube that referenced this pull request Aug 24, 2022
…tools#834)

* add documentation for reading lower-dimensional objects

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update spectral_cube/lower_dimensional_structures.py

Co-authored-by: Eric Koch <[email protected]>

* Update spectral_cube/lower_dimensional_structures.py

* Update spectral_cube/lower_dimensional_structures.py

Co-authored-by: Eric Koch <[email protected]>

* Update spectral_cube/lower_dimensional_structures.py

Co-authored-by: Eric Koch <[email protected]>
keflavich added a commit to keflavich/spectral-cube that referenced this pull request Aug 24, 2022
…tools#834)

* add documentation for reading lower-dimensional objects

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update spectral_cube/lower_dimensional_structures.py

Co-authored-by: Eric Koch <[email protected]>

* Update spectral_cube/lower_dimensional_structures.py

* Update spectral_cube/lower_dimensional_structures.py

Co-authored-by: Eric Koch <[email protected]>

* Update spectral_cube/lower_dimensional_structures.py

Co-authored-by: Eric Koch <[email protected]>
keflavich pushed a commit to keflavich/spectral-cube that referenced this pull request Sep 23, 2022
author SpacialTree <[email protected]> 1658337021 -0400
committer Adam Ginsburg (keflavich) <[email protected]> 1663972401 -0400

Add cube mosaicking

Created functions to mosaic cubes together.

Made Requested Changes to Pull Request

Delete .gitignore

Revert "Delete .gitignore"

This reverts commit 04ccb30.

Update .gitignore

Fix for Colorbar already exists error

In the case where the FITSFigure has already has a colorbar, will not attempt to add the colorbar again.

Catch all Exceptions for Quicklook

Should print out all exceptions when encountering them in quicklook, and display an image still instead of crashing.

Change to Combine Headers

Rename `reproject_together` and change function to use headers instead of cubes.

mosaic_cubes now takes a list

Rework of mosaic_cubes to take a list of cubes and mosaic them all together into the same field.

Update cube_utils.py

Change function name to combine_headers where it was called

Update combine_headers

Fixed problems with find_optimal_celestial_wcs line being passed 3D WCS and wrong order of WCS & shape

Update cube_utils.py

Fixed masking out additional cubes

Update test_regrid.py

Added test for mosaic_cubes

Update cube_utils.py

Update spectral_cube/cube_utils.py

Co-authored-by: Adam Ginsburg <[email protected]>

Update spectral_cube/cube_utils.py

Co-authored-by: Adam Ginsburg <[email protected]>

Update spectral_cube/cube_utils.py

Co-authored-by: Adam Ginsburg <[email protected]>

Update cube_utils.py

+= was causing an error

Update spectral_cube/tests/test_regrid.py

Co-authored-by: Adam Ginsburg <[email protected]>

Update spectral_cube/tests/test_regrid.py

Co-authored-by: Adam Ginsburg <[email protected]>

Update spectral_cube/tests/test_regrid.py

Co-authored-by: Adam Ginsburg <[email protected]>

Update lower_dimensional_structures.py

Update test_regrid.py

add import statement

Update test_regrid.py

more specific import statement

Update spectral_cube/tests/test_regrid.py

Co-authored-by: Adam Ginsburg <[email protected]>

Update spectral_cube/cube_utils.py

block size argument error

Co-authored-by: Adam Ginsburg <[email protected]>

Update spectral_cube/tests/test_regrid.py

Co-authored-by: Adam Ginsburg <[email protected]>

pass kwargs to reproject

add documentation for reading lower-dimensional objects (radio-astro-tools#834)

* add documentation for reading lower-dimensional objects

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update spectral_cube/lower_dimensional_structures.py

Co-authored-by: Eric Koch <[email protected]>

* Update spectral_cube/lower_dimensional_structures.py

* Update spectral_cube/lower_dimensional_structures.py

Co-authored-by: Eric Koch <[email protected]>

* Update spectral_cube/lower_dimensional_structures.py

Co-authored-by: Eric Koch <[email protected]>

fix some simple issues

fix up first part of test (testing WCS)

remove comments

minor whitespace

Fix whitespace

Fix for missing edges

Add fix to other reproject

pass kwargs to mosaic_cubes
keflavich pushed a commit to keflavich/spectral-cube that referenced this pull request Sep 28, 2022
author SpacialTree <[email protected]> 1658337021 -0400
committer Adam Ginsburg (keflavich) <[email protected]> 1663972401 -0400

Add cube mosaicking

Created functions to mosaic cubes together.

Made Requested Changes to Pull Request

Delete .gitignore

Revert "Delete .gitignore"

This reverts commit 04ccb30.

Update .gitignore

Fix for Colorbar already exists error

In the case where the FITSFigure has already has a colorbar, will not attempt to add the colorbar again.

Catch all Exceptions for Quicklook

Should print out all exceptions when encountering them in quicklook, and display an image still instead of crashing.

Change to Combine Headers

Rename `reproject_together` and change function to use headers instead of cubes.

mosaic_cubes now takes a list

Rework of mosaic_cubes to take a list of cubes and mosaic them all together into the same field.

Update cube_utils.py

Change function name to combine_headers where it was called

Update combine_headers

Fixed problems with find_optimal_celestial_wcs line being passed 3D WCS and wrong order of WCS & shape

Update cube_utils.py

Fixed masking out additional cubes

Update test_regrid.py

Added test for mosaic_cubes

Update cube_utils.py

Update spectral_cube/cube_utils.py

Co-authored-by: Adam Ginsburg <[email protected]>

Update spectral_cube/cube_utils.py

Co-authored-by: Adam Ginsburg <[email protected]>

Update spectral_cube/cube_utils.py

Co-authored-by: Adam Ginsburg <[email protected]>

Update cube_utils.py

+= was causing an error

Update spectral_cube/tests/test_regrid.py

Co-authored-by: Adam Ginsburg <[email protected]>

Update spectral_cube/tests/test_regrid.py

Co-authored-by: Adam Ginsburg <[email protected]>

Update spectral_cube/tests/test_regrid.py

Co-authored-by: Adam Ginsburg <[email protected]>

Update lower_dimensional_structures.py

Update test_regrid.py

add import statement

Update test_regrid.py

more specific import statement

Update spectral_cube/tests/test_regrid.py

Co-authored-by: Adam Ginsburg <[email protected]>

Update spectral_cube/cube_utils.py

block size argument error

Co-authored-by: Adam Ginsburg <[email protected]>

Update spectral_cube/tests/test_regrid.py

Co-authored-by: Adam Ginsburg <[email protected]>

pass kwargs to reproject

add documentation for reading lower-dimensional objects (radio-astro-tools#834)

* add documentation for reading lower-dimensional objects

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update spectral_cube/lower_dimensional_structures.py

Co-authored-by: Eric Koch <[email protected]>

* Update spectral_cube/lower_dimensional_structures.py

* Update spectral_cube/lower_dimensional_structures.py

Co-authored-by: Eric Koch <[email protected]>

* Update spectral_cube/lower_dimensional_structures.py

Co-authored-by: Eric Koch <[email protected]>

fix some simple issues

fix up first part of test (testing WCS)

remove comments

minor whitespace

Fix whitespace

Fix for missing edges

Add fix to other reproject

pass kwargs to mosaic_cubes
keflavich added a commit that referenced this pull request Oct 4, 2022
* Add cube mosaicking

Created functions to mosaic cubes together.

* Made Requested Changes to Pull Request

* Delete .gitignore

* Revert "Delete .gitignore"

This reverts commit 04ccb30.

* Update .gitignore

* Fix for Colorbar already exists error

In the case where the FITSFigure has already has a colorbar, will not attempt to add the colorbar again.

* Catch all Exceptions for Quicklook

Should print out all exceptions when encountering them in quicklook, and display an image still instead of crashing.

* Change to Combine Headers

Rename `reproject_together` and change function to use headers instead of cubes.

* mosaic_cubes now takes a list

Rework of mosaic_cubes to take a list of cubes and mosaic them all together into the same field.

* Update cube_utils.py

Change function name to combine_headers where it was called

* Update combine_headers

Fixed problems with find_optimal_celestial_wcs line being passed 3D WCS and wrong order of WCS & shape

* Update cube_utils.py

Fixed masking out additional cubes

* Update test_regrid.py

Added test for mosaic_cubes

* Update spectral_cube/cube_utils.py

Co-authored-by: Adam Ginsburg <[email protected]>

* Update spectral_cube/cube_utils.py

Co-authored-by: Adam Ginsburg <[email protected]>

* Update spectral_cube/cube_utils.py

Co-authored-by: Adam Ginsburg <[email protected]>

* Update spectral_cube/cube_utils.py

Co-authored-by: Adam Ginsburg <[email protected]>

* Update cube_utils.py

* Update cube_utils.py

+= was causing an error

* Update spectral_cube/tests/test_regrid.py

Co-authored-by: Adam Ginsburg <[email protected]>

* Update spectral_cube/tests/test_regrid.py

Co-authored-by: Adam Ginsburg <[email protected]>

* Update spectral_cube/tests/test_regrid.py

Co-authored-by: Adam Ginsburg <[email protected]>

* Update lower_dimensional_structures.py

* Update test_regrid.py

add import statement

* Update test_regrid.py

more specific import statement

* Update spectral_cube/tests/test_regrid.py

Co-authored-by: Adam Ginsburg <[email protected]>

* Update spectral_cube/cube_utils.py

block size argument error

Co-authored-by: Adam Ginsburg <[email protected]>

* Update spectral_cube/tests/test_regrid.py

Co-authored-by: Adam Ginsburg <[email protected]>

* pass kwargs to reproject

* add documentation for reading lower-dimensional objects (#834)

* add documentation for reading lower-dimensional objects

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update docs/creating_reading.rst

Co-authored-by: Eric Koch <[email protected]>

* Update spectral_cube/lower_dimensional_structures.py

Co-authored-by: Eric Koch <[email protected]>

* Update spectral_cube/lower_dimensional_structures.py

* Update spectral_cube/lower_dimensional_structures.py

Co-authored-by: Eric Koch <[email protected]>

* Update spectral_cube/lower_dimensional_structures.py

Co-authored-by: Eric Koch <[email protected]>

* fix some simple issues

* fix up first part of test (testing WCS)

* remove comments

* minor whitespace

* Fix whitespace

* Fix for missing edges

* Add fix to other reproject

* pass kwargs to mosaic_cubes

* fix tests and add some helpful error messages

* fix bug uncovered with new test

* Update spectral_cube/tests/test_regrid.py

Co-authored-by: Eric Koch <[email protected]>

* Update spectral_cube/cube_utils.py

Co-authored-by: Eric Koch <[email protected]>

* resolve comment from e-koch

* minor flake8 fixes

Co-authored-by: Adam Ginsburg <[email protected]>
Co-authored-by: Eric Koch <[email protected]>
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