Add --columns parameter to knnPerfTest.py for custom output selection#466
Add --columns parameter to knnPerfTest.py for custom output selection#466rohit211-s wants to merge 2 commits intomikemccand:mainfrom
Conversation
|
Thanks for contributing during the CoC hackathon! You have the honors of the first PR contribution :-) |
msokolov
left a comment
There was a problem hiding this comment.
This looks cool. I am concerned about relying on gradle though -- I think typical usage is to run by python3 src/main/knnPerfTest.py . if we do that, columns will be None by default I think? Also, it would be nice to have a docstring to that --help would tell me what the columns are that I can select. I haven't really followed the work to add a gradle runner and / or use argparse, but I think argparse generally provides docs like that
|
You're absolutely right about typical usage being direct Python execution Mike. The implementation works correctly for both approaches: Direct Python usage (primary): Gradle usage (optional convenience): The core functionality is in the Python script - the gradle changes just pass through the parameter for users who prefer the gradle workflow (I generally use ./gradlew). When Would you prefer I remove the gradle changes and keep only the Python implementation? |
No, I was just confused how this works at first. I must have missed some of the changes that I see now, not sure how ... |
|
can you show the output of |
|
also, it looks like there's a failing test - maybe indentation or something? |
Try |
|
still fails with: Is there a way to run such tests locally? Maybe |
|
This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the [email protected] list. Thank you for your contribution! |

Fixes #465
Changes
--columnscommand-line argument toknnPerfTest.pyrunKnnPerfTesttask to support-Pcolumnsproperty