-
Notifications
You must be signed in to change notification settings - Fork 1
Creation of test-persistence.R #41
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
base: main
Are you sure you want to change the base?
Conversation
|
@a1danbryant i believe the new test file should be located alongside the existing test files in It might eventually become part of |
|
Thanks for this PR. The CI however fails. Can you please take a look? |
|
And, to be sure, these are mostly derived from the previous version of the |
Yes, this has been adapted from the
Looking into this now. |
|
After making moving the Also, it seems running the tests through here causes the handling for the package version of {ripserr} to err. I'm looking into this error now. |
|
Okay! Everything is working smoothly on my end now, sorry for the hold up! Let me know if any issues persist. |
|
Thanks! It still does not pass the CI. Now because of: |
|
Sorry about that-- I must have ran the test with the {TDA} package loaded.
Console output: > tinytest::test_all("C:/Users/bryan/phutil/")
test-distances.R.............. 24 tests OK 1.1s
test-persistence-class.R...... 44 tests OK 0.6s
test-persistence.R............ 35 tests OK 44ms
test-utils.R.................. 4 tests OK
! Birth values are expected to be smaller than death values.
test-utils.R.................. 5 tests OK
! Birth values are expected to be smaller than death values.
test-utils.R.................. 8 tests OK 0.2s
All ok, 111 results (2.0s)
<\details>```
|
|
Hey @astamm just shooting you a follow up about this. |
|
We can skip tests relying on ripserr if not installed, which would avoid the suggested dependency. |
|
Is that right? I was under the impression it would still need to be listed somewhere in 'DESCRIPTION'. But if it works, great! |
This PR contains the addition of tests/test-persistence.R, a test file to support the R/persistence-class.R file.
Tests include:
matrix,listof matrices, etc.)persistenceobjects anddata.frameget_pairs()A couple questions I have include:
Looking forward to your feedback!