-
Notifications
You must be signed in to change notification settings - Fork 129
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
small fixes in input for calculate_indices() rgb() #1277
Conversation
added line to prevent warnings from dask. Changed collection name in calculate_indices(), and reset band names in rgb() to default to avoid errors
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@@ -60,7 +60,7 @@ | |||
"These options will run a single cell at a time.\n", | |||
"\n", | |||
"To automatically run all cells in a notebook, navigate to the \"Run\" tab of the menu bar at the top of JupyterLab and select \"Run All Cells\" (or the option that best suits your needs).\n", | |||
"When a cell is run, the cell's content is executed.\n", | |||
"When a cell is run,the cell's content is executed.\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GL-S - might need to revert this change - guessing it was the one testing git access
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes you are correct, I will
View / edit / reply to this conversation on ReviewNB robbibt commented on 2025-01-16T05:19:56Z Line #19. dask.config.set({'distributed.worker.daemon': False}); # Prevent some warnings from being printed Can you elaborate on this - e.g. what warnings? We could potentially move this to the |
View / edit / reply to this conversation on ReviewNB robbibt commented on 2025-01-16T05:19:57Z Line #7. ds = dc.load(product='ga_ls8cls9c_gm_cyear_3', Yay, great fix - we must have missed this last year |
View / edit / reply to this conversation on ReviewNB robbibt commented on 2025-01-16T05:19:57Z Line #7. # default band names: ['nbart_red', 'nbart_green', 'nbart_blue'] I reckon we can probably remove this line if this func now works directly on bands with those names |
View / edit / reply to this conversation on ReviewNB robbibt commented on 2025-01-16T05:19:58Z Line #6. # default band names: ['nbart_red', 'nbart_green', 'nbart_blue'] Same here; I'd probably remove this line just to keep things simple |
This looks great, thankls @GL-S! I left a few minor comments on the notebook... for the Dask thing, my main priority is just making sure the new line doesn't accidently cause any other downstream issues. If we're sure it doesn't, then we could consider moving it from this notebook to the |
Thank you for the comments @robbibt . Regarding the comments about the band names, I get your point. I will remove those commented lines |
The warning seems to suggest there was a conflict between config worker as daemon and number of jobs = 1. Intuitively I don’t know why it can’t be both. The suggested solution is setting worker process as non-daemon. I don’t think it’s a good idea in general. Also as it runs with scikit-learn, I suspected the warnings actually suggested something different and more serious. Scikit-learn is multi-threading, it’s tricky to run with dask. I didn’t read the notebook. If it couldn’t be understood and resolved with reasonable thought, I’d suggest to keep it until further investigation. |
Hi all, I have submitted another commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks heaps @GL-S, I think this is a good approach for now. Any chance you could create quick Github issue in this repo describing the warnings issue, that we can refer to later to work out what's going wrong?
Other than that, I think this is ready to "Squash and merge" into the develop branch 🙂
Sure, I will create an issue now |
Proposed changes
added line to prevent warnings from dask.
Changed collection name in calculate_indices(), and reset band names in rgb() to default to avoid errors
Closes issues (optional)
Checklist
(Replace
[ ]
with[x]
to check off)NCI
andDEA Sandbox
(flag if not working as part of PR and ask for help to solve if needed)