Skip to content

Commit

Permalink
Fix missing nplds attribute in derived - this was breaking oxasl_enable
Browse files Browse the repository at this point in the history
  • Loading branch information
mcraig-ibme committed Mar 13, 2024
1 parent 8d30beb commit 3e6bf58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions oxasl/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,9 +635,9 @@ def single_ti(self, ti_idx, order=None, name=None):
nvols = nrpts*self.ntc*self.ntes
output_data = reordered.data[:, :, :, start:start+nvols]
tis, plds = None, None
if self.have_plds and self.plds is not None:
if self.plds is not None:
plds = [self.plds[ti_idx],]
elif not self.have_plds and self.tis is not None:
if self.tis is not None:
tis = [self.tis[ti_idx],]

if self.taus is not None:
Expand All @@ -651,7 +651,7 @@ def single_ti(self, ti_idx, order=None, name=None):

if not name:
name = self.name + "_ti%i" % ti_idx
return self.derived(image=output_data, name=name, order=order, tis=tis, plds=plds, taus=taus, ntis=1, rpts=nrpts)
return self.derived(image=output_data, name=name, order=order, tis=tis, plds=plds, taus=taus, ntis=1, nplds=1, rpts=nrpts)

def diff(self, name=None):
"""
Expand Down

0 comments on commit 3e6bf58

Please sign in to comment.