Skip to content

Commit 1fa952c

Browse files
committed
Fixed the float not subscriptable error
1 parent 863e7f7 commit 1fa952c

File tree

2 files changed

+241809
-1
lines changed

2 files changed

+241809
-1
lines changed

utilities/data_simulation/GenerateData.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def multiexponential_signal(self, D, F, S0, bvalues):
7575
assert len(D) == len(F), 'D and F must be the same length'
7676
signal = self._op.zeros_like(bvalues)
7777
for [d, f] in zip(D, F):
78-
signal += f * self.exponential_signal(d[0], bvalues)
78+
signal += f * self.exponential_signal(d, bvalues)
7979
signal *= S0
8080
return signal
8181

0 commit comments

Comments
 (0)