Skip to content

Commit

Permalink
added offset for crystal def in sinogram
Browse files Browse the repository at this point in the history
  • Loading branch information
pjmark committed May 7, 2024
1 parent 3bf205e commit 1518bde
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions niftypet/nipet/invaux.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,15 @@ def transaxial_lut(Cnt, visualisation=False):
# > global sinogram index (linear) of live crystals (excludes gaps)

Check failure on line 367 in niftypet/nipet/invaux.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] niftypet/nipet/invaux.py#L367

E303 too many blank lines (2)
Raw output
niftypet/nipet/invaux.py:367:5: E303 too many blank lines (2)
awi = 0

coff = 2

for iw in range(Cnt['NSBINS']):
for ia in range(Cnt['NSANGLES']):
c0 = int(
np.floor((ia + 0.5 * (Cnt['NCRS'] - 0 + Cnt['NSBINS'] / 2 - iw)) % Cnt['NCRS']))
np.floor((ia + 0.5 * (Cnt['NCRS'] - coff + Cnt['NSBINS'] / 2 - iw)) % Cnt['NCRS']))
c1 = int(
np.floor(
(ia + 0.5 * (2 * Cnt['NCRS'] - 0 - Cnt['NSBINS'] / 2 + iw)) % Cnt['NCRS']))
(ia + 0.5 * (2 * Cnt['NCRS'] - coff - Cnt['NSBINS'] / 2 + iw)) % Cnt['NCRS']))

s2c[ia + iw * Cnt['NSANGLES'], 0] = c0
s2c[ia + iw * Cnt['NSANGLES'], 1] = c1
Expand Down

0 comments on commit 1518bde

Please sign in to comment.