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

Started adding support for allowing dask arrays as input #352

Merged
merged 9 commits into from
May 19, 2023

Conversation

astrofrog
Copy link
Member

@astrofrog astrofrog commented Mar 16, 2023

This PR adds support for specifying the input data as a dask array - this covers only the general case mentioned in #362 of Input where all dimensions are to be reprojected

As mentioned in #362, the general case requires us to write out the dask array to disk and reload it as a Numpy memmap array. There will be ways of making common use cases more efficient as outlined in #362 but for now this PR implements the general approach.

@astrofrog astrofrog marked this pull request as draft March 16, 2023 22:00
reproject/utils.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented May 18, 2023

Codecov Report

Merging #352 (3aeb27a) into main (69f8b61) will increase coverage by 0.10%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #352      +/-   ##
==========================================
+ Coverage   92.39%   92.50%   +0.10%     
==========================================
  Files          24       24              
  Lines         828      840      +12     
==========================================
+ Hits          765      777      +12     
  Misses         63       63              
Impacted Files Coverage Δ
reproject/array_utils.py 100.00% <100.00%> (ø)
reproject/utils.py 85.29% <100.00%> (+1.01%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@astrofrog astrofrog marked this pull request as ready for review May 19, 2023 11:55
@astrofrog astrofrog requested a review from Cadair May 19, 2023 11:55
@astrofrog astrofrog merged commit 99d5dd7 into astropy:main May 19, 2023
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants