Skip to content

Commit

Permalink
quick fix in allocate for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
evgueni-ovtchinnikov committed Nov 22, 2023
1 parent 1ab45d5 commit f7a9b8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/SIRF.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ def allocate(self, value=0, **kwargs):
CIL/SIRF compatibility
"""
if value is None:
value = 0
if value in ['random', 'random_int']:
out = self.get_uniform_copy()
shape = out.shape
Expand Down

0 comments on commit f7a9b8e

Please sign in to comment.