Skip to content

Commit

Permalink
Use section for selecting out portions of data (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins authored Mar 18, 2024
1 parent e528649 commit c65cf77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ History

X.Y.Z (YYYY-MM-DD)
------------------
* Use fits section to selection portions of a FITS file on remote data (:pr:`13`)
* Add a weakref.finalize method to close HDUList objects on FitsProxy instances (:pr:`12`)
* Depend on fsspec (:pr:`11`)
* Improve dask array name determinism (:pr:`10`)
Expand Down
2 changes: 1 addition & 1 deletion xarrayfits/fits.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def slices(r):


def _get_data_function(fp, h, i):
return fp.hdu_list[h].data[i]
return fp.hdu_list[h].section[i]


def generate_slice_gets(fits_proxy, hdu, shape, dtype, chunks):
Expand Down

0 comments on commit c65cf77

Please sign in to comment.