Skip to content
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

Return results for diff and rank methods #159

Open
Ayatafoy opened this issue Jul 19, 2022 · 1 comment
Open

Return results for diff and rank methods #159

Ayatafoy opened this issue Jul 19, 2022 · 1 comment

Comments

@Ayatafoy
Copy link

Is your feature request related to a problem? Please describe.
Our use case assumes using wily in the unit tests to validate different metrics thresholds. It is not the best practice to parse cli string to get the metrics, instead, it would be very useful to work with python packages, but without accessing output results in the objects for diff and rank methods it's impossible

Describe the solution you'd like
If we add return results to the diff method and return data to the rank method, we can work with wily in unit tests and operate output in better way

Describe alternatives you've considered
Parsing cli

@devdanzin
Copy link
Collaborator

It would be simple enough to add this, but a bit of design choices should be decided before implementation. It could return the whole table as TSV (or JSON if we add that output format), or the lists used to build the table. If we return the lists, it still needs deciding whether to only return the data or headers + data.

What option would better fit your use case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants