Skip to content

Commit

Permalink
added tracer groups based on radionuclides to Cnt
Browse files Browse the repository at this point in the history
  • Loading branch information
pjmark committed Jan 10, 2024
1 parent 62db412 commit 0b5054a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 1 addition & 4 deletions amypet/align.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
from .ur_tools import preproc_ur
from .utils import get_atlas

Check failure on line 18 in amypet/align.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] amypet/align.py#L18

F401 '.utils.get_atlas' imported but unused
Raw output
amypet/align.py:18:1: F401 '.utils.get_atlas' imported but unused

Check failure on line 19 in amypet/align.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] amypet/align.py#L19

I004 isort found an unexpected blank line in imports
Raw output
amypet/align.py:19:1: I004 isort found an unexpected blank line in imports
# > tracer in different radionuclide group
f18group = ['fbb', 'fbp', 'flute']
c11group = ['pib']

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

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

Check failure on line 924 in amypet/align.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] amypet/align.py#L924

E501 line too long (118 > 99 characters)
Raw output
amypet/align.py:924:100: E501 line too long (118 > 99 characters)

# > decay constant using half-life
lmbd = np.log(2) / nimpa.resources.riLUT[istp]['thalf']
Expand Down
4 changes: 4 additions & 0 deletions amypet/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ pib = [5400, 6600, 1200]
flute = [5400, 6600, 1200]
fbb = [5400, 6600, 1200]
fbp = [3000, 3600, 600]

[tracer]
f18 = ['fbb', 'fbp', 'flute', 'mk-6240']
c11 = ['pib']

0 comments on commit 0b5054a

Please sign in to comment.