Skip to content

Commit

Permalink
added additional improvment for updated Cnt
Browse files Browse the repository at this point in the history
  • Loading branch information
pjmark committed May 6, 2024
1 parent b752380 commit 46d4f66
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions niftypet/nipet/invaux.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ def fwhm2sig(fwhm):


#====================================================================

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

View workflow job for this annotation

GitHub Actions / flake8

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

E303 too many blank lines (3)
Raw output
niftypet/nipet/invaux.py:36:1: E303 too many blank lines (3)

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

View workflow job for this annotation

GitHub Actions / flake8

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

E265 block comment should start with '# '
Raw output
niftypet/nipet/invaux.py:36:1: E265 block comment should start with '# '
def get_invpars():
def get_invpars(Cnt=None):

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

View workflow job for this annotation

GitHub Actions / flake8

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

E302 expected 2 blank lines, found 3
Raw output
niftypet/nipet/invaux.py:37:1: E302 expected 2 blank lines, found 3
"""
get all scanner parameters in one dictionary
"""

# > get the constants for the mMR
Cnt = resources.get_inv_constants()
# > get the constants for the Inveon if not already given
if not Cnt:
Cnt = resources.get_inv_constants()

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

View workflow job for this annotation

GitHub Actions / flake8

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

W293 blank line contains whitespace
Raw output
niftypet/nipet/invaux.py:45:1: W293 blank line contains whitespace
# > transaxial look-up tables
txLUT = transaxial_lut(Cnt)
Expand Down Expand Up @@ -215,7 +216,7 @@ def axial_lut(Cnt):
'li2nos':li2nos, 'li2rno':li2r, 'li2sn':li2sn, 'li2sn1':li2sn, 'li2rng':li2rng,

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

View workflow job for this annotation

GitHub Actions / flake8

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

E128 continuation line under-indented for visual indent
Raw output
niftypet/nipet/invaux.py:216:13: E128 continuation line under-indented for visual indent

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

View workflow job for this annotation

GitHub Actions / flake8

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

E231 missing whitespace after ':'
Raw output
niftypet/nipet/invaux.py:216:21: E231 missing whitespace after ':'

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

View workflow job for this annotation

GitHub Actions / flake8

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

E231 missing whitespace after ':'
Raw output
niftypet/nipet/invaux.py:216:38: E231 missing whitespace after ':'

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

View workflow job for this annotation

GitHub Actions / flake8

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

E231 missing whitespace after ':'
Raw output
niftypet/nipet/invaux.py:216:52: E231 missing whitespace after ':'

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

View workflow job for this annotation

GitHub Actions / flake8

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

E231 missing whitespace after ':'
Raw output
niftypet/nipet/invaux.py:216:68: E231 missing whitespace after ':'

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

View workflow job for this annotation

GitHub Actions / flake8

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

E231 missing whitespace after ':'
Raw output
niftypet/nipet/invaux.py:216:84: E231 missing whitespace after ':'

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

View workflow job for this annotation

GitHub Actions / flake8

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

W291 trailing whitespace
Raw output
niftypet/nipet/invaux.py:216:92: W291 trailing whitespace
'sn1_rno':sn_rno, 'sn1_ssrb':sn_ssrb, 'sn1_ssrno':sn_ssrno

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

View workflow job for this annotation

GitHub Actions / flake8

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

E128 continuation line under-indented for visual indent
Raw output
niftypet/nipet/invaux.py:217:13: E128 continuation line under-indented for visual indent

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

View workflow job for this annotation

GitHub Actions / flake8

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

E231 missing whitespace after ':'
Raw output
niftypet/nipet/invaux.py:217:22: E231 missing whitespace after ':'

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

View workflow job for this annotation

GitHub Actions / flake8

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

E231 missing whitespace after ':'
Raw output
niftypet/nipet/invaux.py:217:41: E231 missing whitespace after ':'

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

View workflow job for this annotation

GitHub Actions / flake8

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

E231 missing whitespace after ':'
Raw output
niftypet/nipet/invaux.py:217:62: E231 missing whitespace after ':'
})

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

View workflow job for this annotation

GitHub Actions / flake8

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

E124 closing bracket does not match visual indentation
Raw output
niftypet/nipet/invaux.py:218:13: E124 closing bracket does not match visual indentation

return axlut


Expand Down

0 comments on commit 46d4f66

Please sign in to comment.