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

Dependency for checking the accuracy of the example code not specified #4

Open
XingerTang opened this issue Jul 13, 2023 · 8 comments
Labels
enhancement New feature or request

Comments

@XingerTang
Copy link
Contributor

All the accuracy.py in the example folder requires the pandas library to check the accuracy of the output, however, the dependency is not specified anywhere. I'm wondering if we can state it somewhere.

@gregorgorjanc
Copy link
Member

gregorgorjanc commented Jul 13, 2023 via email

@XingerTang
Copy link
Contributor Author

XingerTang commented Jul 13, 2023

@gregorgorjanc

Yes, I think that would help.

I'll work on it after the transfer to tuple datatype is completed.

@gregorgorjanc
Copy link
Member

gregorgorjanc commented Jul 13, 2023 via email

@XingerTang
Copy link
Contributor Author

@gregorgorjanc We can create a workflow that uses pytest to test the code, the workflow can be triggered by pushes or pull requests as usual. But we also need to write test functions with expected outputs as well.

@gregorgorjanc
Copy link
Member

I like the sound of pytest - how would this look like compared to the example and tests we have in some of our packages? I suggest we try and do most/all these implementations in AlphaPeel first and then we port them to other packages. Otherwise we will loose track of what we have done where;)

@XingerTang
Copy link
Contributor Author

@gregorgorjanc
According to the homepage of pytest, its features are

I regard pytest as a tool designed specifically for the tests of the Python code. It can run all the test code at once as long as the functions and files name are written in the correct format and output a detailed and helpful report about the error raised by the test functions. It can also be integrated into the workflow. And I think with pytest we can probably get rid of the bash script and write everything in Python.

@gregorgorjanc
Copy link
Member

That would be great @XingerTang! We will still need examples script though. How much work is there for this? Can you sketch out an example?

@XingerTang
Copy link
Contributor Author

@gregorgorjanc I think I can try to start with test 1 of the functional tests of Alpha Peel to see how it works.

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

No branches or pull requests

2 participants