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 lazy flag to make laziness optional #261

Merged
merged 4 commits into from
Apr 12, 2022
Merged

add lazy flag to make laziness optional #261

merged 4 commits into from
Apr 12, 2022

Conversation

rafaqz
Copy link
Owner

@rafaqz rafaqz commented Apr 7, 2022

This PR adds a lazy flag to Raster and RasterStack so that lazy loading is optional. For now it is true by default, but this may change, or we can add package preference to set it manually.

Closes #260

@kongdd
Copy link
Contributor

kongdd commented Apr 10, 2022

glad to see this feature implemented.

@kongdd
Copy link
Contributor

kongdd commented Apr 10, 2022

I urgently need this feature in one of my recent research. Hope this feature could be in the master branch soon.

@rafaqz
Copy link
Owner Author

rafaqz commented Apr 10, 2022

Yeah, there are some problems with CI in RasterDataSources.jl that keep making things fail. Im trying to fix, hopefully tonight.

@kongdd
Copy link
Contributor

kongdd commented Apr 10, 2022

Awesome. Thank for your help.

@rafaqz
Copy link
Owner Author

rafaqz commented Apr 10, 2022

@kongdd see how this goes in CI. I'm pretty busy currently so it might not be tonight unfortunately.

You can also just check out this branch manually if you need it. Like ] add Rasters#lazy

@kongdd
Copy link
Contributor

kongdd commented Apr 11, 2022

Got it. Thank u. I will have a try.

@codecov-commenter
Copy link

codecov-commenter commented Apr 12, 2022

Codecov Report

Merging #261 (84472e4) into master (0094907) will decrease coverage by 0.07%.
The diff coverage is 72.83%.

@@            Coverage Diff             @@
##           master     #261      +/-   ##
==========================================
- Coverage   85.34%   85.27%   -0.08%     
==========================================
  Files          36       37       +1     
  Lines        2593     2628      +35     
==========================================
+ Hits         2213     2241      +28     
- Misses        380      387       +7     
Impacted Files Coverage Δ
src/sources/smap.jl 0.00% <0.00%> (ø)
src/openstack.jl 57.14% <57.14%> (ø)
src/sources/ncdatasets.jl 86.66% <83.33%> (-0.20%) ⬇️
src/array.jl 92.70% <100.00%> (+0.31%) ⬆️
src/filestack.jl 93.75% <100.00%> (+0.89%) ⬆️
src/read.jl 90.90% <100.00%> (-0.40%) ⬇️
src/sources/gdal.jl 91.40% <100.00%> (+0.03%) ⬆️
src/sources/grd.jl 96.55% <100.00%> (+1.81%) ⬆️
src/stack.jl 88.54% <100.00%> (+1.04%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@rafaqz rafaqz merged commit 82f6444 into master Apr 12, 2022
@rafaqz rafaqz deleted the lazy branch April 12, 2022 07:55
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.

Add lazy keyword to constructors
3 participants