-
Notifications
You must be signed in to change notification settings - Fork 195
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
Fix #545: Add "path" arg and deprecate "raster_path" in predict_tile() #976
Conversation
Ref Same: #975 |
Sorry again for the trouble. Due to my lack of experience, I mistakenly force-pushed my branch, which unintentionally closed my previous PR. Since I wasn’t sure how to proceed, I submitted a new PR, but I now realize that might not have been the best approach. Could you kindly guide me on what the best course of action is from here? |
Hi @Samia35-2973, no worries—this happens! Instead of creating a new PR, you can update your existing one like this:
This updates the PR without adding new commits. I faced a similar issue before, and mentor helped me to resolve it. You can see how they guided me here: PR #930. Hope this helps! 😊 |
Thanks @Abhishek-Dimri, that makes a lot of sense. Now that I opened this new PR, what do you think I should do? Should I close this new PR and try to recover the old one? |
@Samia35-2973, it’s your choice! You can reopen the old PR and update it, or you can continue working on this new PR. I don’t think either will cause any major issues. Could you share why you made these changes and how they’ll help improve the project? |
The changes I made are meant to align the argument names in |
Thanks @Samia35-2973 and @Abhishek-Dimri for the contribution. |
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.
These updates look good so far. We can add a few more things.
Let's search the entire repo for predict_tile as shown here and review all instances to ensure full coverage. This will enable you update the documentation accordingly.
For these changes, please make a new commit.
Hi @henrykironde, I have some questions regarding the changes.
Thanks! |
You can edit that code as you feel. Make sure the readers can understand the code easily.
To update |
450af80
to
7be5e0e
Compare
Hi @henrykironde, I have updated all occurrences of |
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 @Samia35-2973 for those changes
I sincerely apologize for the inconvenience I caused earlier. I truly appreciate your patience and guidance. If it’s okay, I have now tried to organize everything freshly with an updated version.
This PR solves the issue #545 by updating the
predict_tile
function to usepath
as an alternative toraster_path
while issuing a deprecation warning whenraster_path
is used. I have also tried to maintain the test cases.Here's what I modified-
In
main.py
:path
as a replacement forraster_path
.DeprecationWarning
whenraster_path
is provided.raster_path
to usepath
.In
test_main.py
: Updated the test cases to usepath
instead ofraster_path
.In
test_visualize.py
: Modifiedtest_predict_tile_and_plot
to usepath
instead ofraster_path
.I did not modify the following function in
test_dataset.py
Please review this and let me know if this function should also be updated along with any further modifications.