-
Notifications
You must be signed in to change notification settings - Fork 0
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
basic testing suite #104
basic testing suite #104
Conversation
1 open question: what parts of the and one other note: as of now, the python version does not return the variance and the average power spectrum in its I also found out, that when presented with a lag=0, the |
still missing is the differentiation between 32 and 64 bit float versions. here I'm not particularly sure yet how we can test this, since there's no way to install both ways together, right? 🤔 |
for why the package |
just realised that the previous output of the regression test was truncated (because the default in any case, to re-generate the regression file and make the regression test pass again, one can run pytest tests/test_ddm.py --regtest-reset |
I think just the import is ok for now. When we finalize the thing about the save/load within the pims framework, it might be worth testing also this functionality (we need to be sure that the endianness is correctly taken into account when writing/reading binary files). |
Correct. And also in this case, we may want to switch to a single-precision-output only at some point, since the double precision output is not really needed most of the time. |
I mean in the |
ah single precision output will help here .. still not sure what a good way would be to simply test this 🤔 maybe pytest supports testing multiple versions of a software; I have to check. I do remember that in the past I used a tool called |
Sorry. Yes, other class methods are not that complex, so I think we can decide later if we want some other class features to be tested. |
We can check, sure |
testing the 32-bit implementations can wait for now, since we do not plan to put them into the first official release! |
all backends & modes now produce the same results with |
the following packages need to be installed for the tests to work:
fastddm
(obviously :) )pytest
pytest-regtest
py
(this one is needed bypytest
but inpytest
s latest version the dependency is missing)Run the tests then via
The way this is implemented is the following:
fastddm.ddm
once using thecpp
core andfft
mode & store this result in a pytest fixtureImageStructureFunction._data
contents.