-
-
Notifications
You must be signed in to change notification settings - Fork 21
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 for #108 - Improvements to data sampling logic #129
base: main
Are you sure you want to change the base?
Conversation
Updated the broken link to reference the correct torch datasets documentation
Co-authored-by: Sukhil Patel <[email protected]>
The key changes that are made in the code are - Column Renaming: Used DataFrame.rename() for consistent column renaming. Broadcasting Metadata: Simplified the creation of capacity_kwp using set_index() and loc[] to filter metadata efficiently. Validation: Added checks for required metadata columns to ensure robustness. Clarity: Reorganized and documented steps for better maintainability. The code is more efficient, easier to read, and robust against common errors.
README.md
Outdated
@@ -18,7 +18,8 @@ We are currently migrating to this repo from [ocf_datapipes](https://github.com/ | |||
## Documentation | |||
|
|||
**ocf-data-sampler** doesn't have external documentation _yet_; you can read a bit about how our torch datasets work in the Readme [here](https://github.com/openclimatefix/ocf-data-sampler/tree/readme-update/ocf_data_sampler/torch_datasets). | |||
**ocf-data-sampler** doesn't have external documentation _yet_; you can read a bit about how our torch datasets work in the Readme [here]([torch datasets documentation](ocf_data_sampler/torch_datasets/README.md) |
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.
**ocf-data-sampler** doesn't have external documentation _yet_; you can read a bit about how our torch datasets work in the Readme [here]([torch datasets documentation](ocf_data_sampler/torch_datasets/README.md) | |
**ocf-data-sampler** doesn't have external documentation _yet_; you can read a bit about how our torch datasets work in the Readme [here](ocf_data_sampler/torch_datasets/README.md) |
Thanks for this @SophiaLi20, left a few small comments it would be good to address and then sort out the merge conflict, after that we can get this merged in, thanks! |
Added comments to test_config.py for better clarity Added inline comments to explain what each test case is checking. This should make it easier for others to understand the purpose of each test without having to go through the code in detail. No actual functionality was changed—just improving readability.
Improve Readability of test_config.py by Adding Inline Comments
Added inline comments to explain what each test case is checking. This should make it easier for others to understand the purpose of each test without having to go through the code in detail. No actual functionality was changed
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.
The formatting looks much better, and the link is clear now. Everything looks good to me! Let me know if there's anything else I can update.
Hey @Sukh-P , I sincerely apologize for the delay—I had exams and couldn’t get back to this sooner. I've now implemented the suggested changes and fixed the merge conflict. Please have a look when you get a chance, and let me know if there's anything else I should change. I’ll make any necessary changes right away. Thanks for your patience and guidance! |
@SophiaLi20 sorry about the delay but is it okay to revert any changes you have made to the test_config file for now? I want to keep this PR to the original scope that you set out in the issue, then we can get this merged in, thanks! |
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.
Want to reduce the scope of this PR
This PR addresses the issue described in #108 and incorporates the feedback mentioned in this comment.
Key Changes:
Testing:
Additional Notes:
Checklist:
[ x] My code follows OCF's coding style guidelines
[x ] I have performed a self-review of my own code
[x ] I have made corresponding changes to the documentation
I have added tests that prove my fix is effective or that my feature works
[x ] I have checked my code and corrected any misspellings