Skip to content

Commit

Permalink
span-1/span-x bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pjmark committed May 7, 2024
1 parent c6e687a commit a0409f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions niftypet/nipet/invaux.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ def axial_lut(Cnt):
# > create two Michelograms for segments (Mseg) in chosen the span

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

View workflow job for this annotation

GitHub Actions / flake8

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

W291 trailing whitespace
Raw output
niftypet/nipet/invaux.py:141:71: W291 trailing whitespace
# > (default 3) and the absolute axial position for individual

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

View workflow job for this annotation

GitHub Actions / flake8

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

W291 trailing whitespace
Raw output
niftypet/nipet/invaux.py:142:67: W291 trailing whitespace
# > sinograms (Mssrb) which is the single slice rebinning
Mssrb = -1 * np.ones((NRNG, NRNG), dtype=np.int32)
Mseg = -1 * np.ones((NRNG, NRNG), dtype=np.int32)
Mssrb = -1 * np.ones((NRNG, NRNG), dtype=np.int16)
Mseg = -1 * np.ones((NRNG, NRNG), dtype=np.int16)
for r1 in range(Cnt['RNG_STRT'], Cnt['RNG_END']):
for r0 in range(Cnt['RNG_STRT'], Cnt['RNG_END']):
if abs(r1 - r0) > Cnt['MRD']:
Expand All @@ -155,10 +155,10 @@ def axial_lut(Cnt):


# > create a Michelogram matrix: rings to sino number in span-3

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

View workflow job for this annotation

GitHub Actions / flake8

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

E303 too many blank lines (2)
Raw output
niftypet/nipet/invaux.py:157:5: E303 too many blank lines (2)
Msn = -1 * np.ones((NRNG, NRNG), dtype=np.int32)
Msn = -1 * np.ones((NRNG, NRNG), dtype=np.int16)

# > number of span-1 sinos per sino in the chosen span (default 3)
Mnos = -1 * np.ones((NRNG, NRNG), dtype=np.int32)
Mnos = -1 * np.ones((NRNG, NRNG), dtype=np.int16)
i = 0
for iseg in range(0, len(axlut['SEG'])):
msk = (Mseg == iseg)
Expand All @@ -171,7 +171,7 @@ def axial_lut(Cnt):
Mnos[Mtmp == uq[u]] = np.sum(Mtmp == uq[u])
i += 1

axlut.update({'Msn':Msn, 'Mnos':Mnos})
axlut.update({'Msn':Msn, 'Mnos':Mnos, 'Mssrb':Mssrb})

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

View workflow job for this annotation

GitHub Actions / flake8

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

E231 missing whitespace after ':'
Raw output
niftypet/nipet/invaux.py:174:24: E231 missing whitespace after ':'

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

View workflow job for this annotation

GitHub Actions / flake8

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

E231 missing whitespace after ':'
Raw output
niftypet/nipet/invaux.py:174:36: E231 missing whitespace after ':'

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

View workflow job for this annotation

GitHub Actions / flake8

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

E231 missing whitespace after ':'
Raw output
niftypet/nipet/invaux.py:174:50: E231 missing whitespace after ':'
#=================== SPAN-X =====================

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

View workflow job for this annotation

GitHub Actions / flake8

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

E265 block comment should start with '# '
Raw output
niftypet/nipet/invaux.py:175:5: E265 block comment should start with '# '

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

View workflow job for this annotation

GitHub Actions / flake8

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

W293 blank line contains whitespace
Raw output
niftypet/nipet/invaux.py:176:1: W293 blank line contains whitespace

Expand Down

0 comments on commit a0409f7

Please sign in to comment.