Skip to content

Commit

Permalink
minor fix in decay corr
Browse files Browse the repository at this point in the history
  • Loading branch information
pjmark committed Jan 10, 2024
1 parent e46b35b commit 62db412
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion amypet/align.py
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ def align_break(
lmbd = np.log(2) / nimpa.resources.riLUT[istp]['thalf']

# > decay correction factor
dcycrr = 1 / np.exp(-lmbd * td)
dcycrr = np.exp(lmbd * td)
else:
dcycrr = 1.

Expand Down
3 changes: 2 additions & 1 deletion amypet/align_brkdyn_ct.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ def align_break_petct(niidat, cts, Cnt, qcpth=None, refpetidx=None, use_stored=F
outdct['faffines'] = faffines
outdct['fnii_com'] = algn_frm[0]['fnii_com'] + algn_frm[1]['fnii_com']

np.save(fout, outdct)
if use_stored:
np.save(fout, outdct)

return outdct

Check failure on line 360 in amypet/align_brkdyn_ct.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] amypet/align_brkdyn_ct.py#L360

W391 blank line at end of file
Raw output
amypet/align_brkdyn_ct.py:360:1: W391 blank line at end of file

0 comments on commit 62db412

Please sign in to comment.