-
Notifications
You must be signed in to change notification settings - Fork 29
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
Trying to accelerate PET algebra tests for larger data #1027
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. I didn't check current run-time.
Where does tests/data.hs sit? Is it checked in ? (I didn't check)
self.image1 = data.get_uniform_copy(0) | ||
self.image2 = data.get_uniform_copy(0) | ||
return | ||
path = os.path.join(examples_data_path('PET'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. I didn't check current run-time.
Where does tests/data.hs sit? Is it checked in ? (I didn't check)
testing time is now 14 sec
data.hs
and data.s
are created, if not present, in SIRF/tests
by the first test - do not know how to delete them after all tests finished (CMake can, I presume?)
not used?
sorry, do not get what you refer to
I think
Also the file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comment #1027 (comment)
rebinning in each test takes twice as long (30 sec vs 14 sec) admittedly my fix is quite ugly, but I do not understand how unittest works, so cannot suggest anything else at the moment |
Each unit tests will be preceded by a call to Your fix is functional, but does go against the whole idea of |
SIRF/src/xSTIR/pSTIR/tests/test_algebra.py Lines 45 to 46 in 0565a50
The file created during the first unittest will end up in If so, I believe we should delete the A possible solution is to be pragmatic and think that this file will be used by the PET Python algebra only and we can create it in the build directory so that we reduce the pollution of the source and install directories to a minimum. I'd be in favour of this solution. |
trying to fix #1013 for larger data