Skip to content

Commit

Permalink
fixed span-3 histogramming
Browse files Browse the repository at this point in the history
  • Loading branch information
pjmark committed May 8, 2024
1 parent da6f9ba commit a86a231
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions niftypet/nipet/lm_inv/hist_inv.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,14 @@ def hist_inv(datain, scanner_params, t0=0, t1=0, outpath='', frms=None, use_stor
txLUT = scanner_params['txLUT']
axLUT = scanner_params['axLUT']

if Cnt['SPN'] == 1: nsinos = Cnt['NSN1']
elif Cnt['SPN'] == 0: nsinos = Cnt['NSEG0']
if Cnt['SPN'] == 1:

Check failure on line 43 in niftypet/nipet/lm_inv/hist_inv.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] niftypet/nipet/lm_inv/hist_inv.py#L43

W291 trailing whitespace
Raw output
niftypet/nipet/lm_inv/hist_inv.py:43:24: W291 trailing whitespace
nsinos = Cnt['NSN1']
elif Cnt['SPN'] == 3:
nsinos = Cnt['NSN3']
elif Cnt['SPN'] == 0:
nsinos = Cnt['NSEG0']
else:
raise ValueError('Unrecognised span.')

log.debug('histogramming with span {}.'.format(Cnt['SPN']))

Expand Down

0 comments on commit a86a231

Please sign in to comment.