DONT MERGE GSOC26: Add error in dataset generator#454
DONT MERGE GSOC26: Add error in dataset generator#454OmBiradar wants to merge 7 commits intolincc-frameworks:mainfrom
Conversation
About the functionThe generator can be made to create complex Is this something that can be worked on? TestsI was unsure what the tests should be The current tests check for 1 case of Also the 2nd test passes when given a but actually this raises an error (below). This needs to be cosidered. I guess the testing can be made better? Could I freely try my own way to improve the test? |
Click here to view all benchmarks. |
|
Many I will go through the code that is testing the generate dataset feature. |
There was a problem hiding this comment.
Hi there, I think this is a PR related to Google Summer of Code, so I will just be providing some comments here:
The main change seems correct (with a slight preference on column name listed below)
For tests, this change actually breaks quite a bit of the existing unit tests, which is expected, as many of our tests rely on this function to create input datasets, and now that the input has changed the outputs are all carrying this additional column that will cause a good chunk of the validation checks to fail. See the CI failures on this PR for details.
On a proper PR that would merge this, we'd want to see all of those existing tests be updated. For this PR, I would just ask to write a small test that runs generate_data and verifies that the error nested sub-column is present in the resulting nestedframe.
Yes sure
This would take time, tho I believe I can get it done. As anyhow I am exploring the project, the tests will prove to be a help to me also.
Sure this seems easy |
I have completed this in this latest commit |
All the tests are now updated! Yay! Some thoughts: I feel that until a release is being planned, the doc tests should be skipped. I had updated around 30 doctests and it was a bit hectic. When a realease is to be generated, the doc tests can be updated at once. Why this is good? : I think doc strings are mostly used by the users, thus having them in the dev development would just unnecessarily hinder progress. |
|
I agree that it is a pain to update, but I also believe that CI should be green for a successful PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #454 +/- ##
=======================================
Coverage 97.30% 97.30%
=======================================
Files 19 19
Lines 2156 2156
=======================================
Hits 2098 2098
Misses 58 58 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
True, The only test that failed was a formatting error, I guess this will be green after a simple formatting. Could you also review my approaches to generate poisson like error in the main issue #156 |
5ee1856 to
fd4f487
Compare
|
@OmBiradar I think we are almost done here! Could you please fix the pre-commit failure? |
|
@hombit I have figured it out now and am running local tests to confirm it works. I will push the changes soon. |
|
Oh, right, sorry for that. Let us know if you spend too much time on that |
|
@hombit Also anytime I run the Could I add them to the it has been a hassle not being able to use |
Signed-off-by: OmBiradar <ombiradar04@gmail.com>
This makes it easily understandable Signed-off-by: OmBiradar <ombiradar04@gmail.com>
Signed-off-by: OmBiradar <ombiradar04@gmail.com>
Signed-off-by: OmBiradar <ombiradar04@gmail.com>
Signed-off-by: OmBiradar <ombiradar04@gmail.com>
Signed-off-by: OmBiradar <ombiradar04@gmail.com>
Signed-off-by: OmBiradar <ombiradar04@gmail.com>
5af2d0b to
53637d6
Compare
Please go ahead and open a PR to add uv.lock to our team's Python template, here. For FYI, you can use |
|
@OmBiradar We are keeping GSOC26 PRs draft, please read the canvas on Slack |
|
I am sorry. I forgot. I got into the practice that as all tests are passing, I ment to just notify. Sorry again. |
No problem! |
|
@OmBiradar Thanks for your time, I'm considering this as done! |
|
@hombit Thank you |
Change Description
Closes #156
Solution Description
Added a new column which has a constant value of 1.
Deciding on what kind of tests to write
Code Quality