-
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
_storage_scheme -> _default_storage_scheme #716
base: master
Are you sure you want to change the base?
Conversation
f92c833
to
9f2094a
Compare
strategy seems ok to me, but is it necessary to change the C++ name (you don't on the python side)? One more thing that breaks backwards compatibility, for not so good reasons? |
I can leave the naming as it is if you'd like, but it seems confusing to me. Keeping the old name makes it unclear as to whether you're returning the default scheme or the scheme for the current object. I didn't change the naming on the python side because it handles both cases - if object is Thinking about it, I should probably update the matlab side... |
I don't see the difference between C++ and Python in that respect. SIRF/src/xSTIR/pSTIR/tests/tests_one.py Line 45 in 7cde815
I agree that the In any case, I want to have the same names in Python/MATLAB/C++. |
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.
needs changes in UsersGuide and CHANGES. see also comment
temp = PET.AcquisitionData(); | ||
temp.set_storage_scheme('memory'); |
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.
I'd be amazed if this changes the default. In C++,Python you need PET.AcquisitionData.set_storage_scheme
@evgueni-ovtchinnikov is this PR still valid (I'm sure it'd need changes). If so, please assign to 3.1 |
fixes #715.
@evgueni-ovtchinnikov how about this. Change
_storage_scheme
to_default_storage_scheme
. If using the static method, return the default. However, if the object exists, return the corresponding type.I've added the test, which fails with the old code, but passes with these changes: