Skip to content

Commit

Permalink
sapyb to return even if out is not None (#1254)
Browse files Browse the repository at this point in the history
With CIL TomographicImaging/CIL#1742 `sapyb` returns even if the output is pre-allocated
  • Loading branch information
paskino authored May 14, 2024
1 parent 1d53570 commit d54c455
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## vx.x.x

* CMake/building:
- Python `sapyb` returns the output even if it is pre-allocated
- add `DISABLE_Gadgetron_TOOLBOXES` option (defaults to `OFF`) to be
able to cope with compilation problems with older Gadgetron versions.

Expand Down
2 changes: 1 addition & 1 deletion src/common/SIRF.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def sapyb(self, a, y, b, out=None, **kwargs):

if out is None:
check_status(z.handle)
return z
return z

def power(self, other, out=None):
'''Power function for DataContainers
Expand Down

0 comments on commit d54c455

Please sign in to comment.