Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pjmark committed May 7, 2024
1 parent f1053eb commit 083b6e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions niftypet/nipet/invaux.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def axial_lut(Cnt):
# ring difference to segment
rd2sg = -1 * np.ones((len(rd), 2), dtype=np.int32)
for i in range(len(rd)):
for iseg in range(len(axLUT['MNRD'])):
if (rd[i] >= axLUT['MNRD'][iseg]) and (rd[i] <= axLUT['MXRD'][iseg]):
for iseg in range(len(axlut['MNRD'])):
if (rd[i] >= axlut['MNRD'][iseg]) and (rd[i] <= axlut['MXRD'][iseg]):
rd2sg[i, :] = np.array([rd[i], iseg])

# > 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
Expand All @@ -160,7 +160,7 @@ def axial_lut(Cnt):
# > number of span-1 sinos per sino in the chosen span (default 3)
Mnos = -1 * np.ones((NRNG, NRNG), dtype=np.int32)
i = 0
for iseg in range(0, len(axLUT['SEG'])):
for iseg in range(0, len(axlut['SEG'])):
msk = (Mseg == iseg)
Mtmp = np.copy(Mssrb)
Mtmp[~msk] = -1
Expand Down

0 comments on commit 083b6e4

Please sign in to comment.