Skip to content

Commit 0b5054a

Browse files
committed
added tracer groups based on radionuclides to Cnt
1 parent 62db412 commit 0b5054a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

amypet/align.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
from .ur_tools import preproc_ur
1818
from .utils import get_atlas
1919

20-
# > tracer in different radionuclide group
21-
f18group = ['fbb', 'fbp', 'flute']
22-
c11group = ['pib']
2320

2421
# > list of registration/motion metrics for alignment
2522
reg_metric_list = ['rss', 'adst']
@@ -924,7 +921,7 @@ def align_break(
924921
td = td[0]
925922

926923
# > what tracer / radionuclide is used?
927-
istp = 'F18' * (niidat['tracer'] in f18group) + 'C11' * (niidat['tracer'] in c11group)
924+
istp = 'F18' * (niidat['tracer'] in Cnt['tracer']['f18']) + 'C11' * (niidat['tracer'] in Cnt['tracer']['c11'])
928925

929926
# > decay constant using half-life
930927
lmbd = np.log(2) / nimpa.resources.riLUT[istp]['thalf']

amypet/params.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,7 @@ pib = [5400, 6600, 1200]
5353
flute = [5400, 6600, 1200]
5454
fbb = [5400, 6600, 1200]
5555
fbp = [3000, 3600, 600]
56+
57+
[tracer]
58+
f18 = ['fbb', 'fbp', 'flute', 'mk-6240']
59+
c11 = ['pib']

0 commit comments

Comments
 (0)