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
Refactored Dataset Class #576
Refactored Dataset Class #576
Conversation
Locust summaryGit referencesInitial: d9ebc7eTerminal: a7a9f65 hub/api/integrations.pyChanges:
hub/api/dataset.pyChanges:
|
Also, @mynameisvinn should I keep the docstrings for the functions in both the files? Or would it be cleaner to remove them from |
Codecov Report
@@ Coverage Diff @@
## master #576 +/- ##
==========================================
+ Coverage 89.10% 89.18% +0.08%
==========================================
Files 52 53 +1
Lines 3845 3874 +29
==========================================
+ Hits 3426 3455 +29
Misses 419 419
Continue to review full report at Codecov.
|
Looks good to me. I don't think we should remove the docstrings as we need them to show up when the user calls the function from Dataset class. The codecov/patch is a little short, other than that should be good to merge unless @mynameisvinn has any more suggestions. |
I'll try to get better coverage for the patch |
@DebadityaPal thanks, will review.
|
@DebadityaPal two minor modifications.
Then I think we're all set! |
@mynameisvinn, @AbhinavTuli could you help me a bit with the codecov? |
Yeah, I'm aware of those functions not being covered. Our hypothesis is that codecov only covers the code that's on the main thread. I just took a look at the codecov and I think we can ignore the codecov/patch drop, it's not really on you, it just dropped because you happened to move the functions that were not covered, the codecov/project is going up anyway. |
This PR is a temporary fix for the refactoring of the Dataset Class.
Since the Dataset class is too heavy and proper refactoring would take a significant amount of time and resources, this is a stopgap solution in which certain functions that convert hub datasets to other frameworks and vice-versa have been relocated from the base Dataset class file
dataset.py
to a new fileintegrations.py
. These functions are not imported when a Dataset object is created, however, if the user calls these functions, they are subsequently imported and used.Closes #526