Skip to content

Commit

Permalink
gui modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
pjmark committed May 3, 2024
1 parent 90d2b60 commit eb5a9cc
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions amypet/centiloid.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
from .proc import proc_vois
from .utils import params

Check failure on line 30 in amypet/centiloid.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] amypet/centiloid.py#L30

I004 isort found an unexpected blank line in imports
Raw output
amypet/centiloid.py:30:1: I004 isort found an unexpected blank line in imports
import matplotlib.pyplot as plt

Check failure on line 31 in amypet/centiloid.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] amypet/centiloid.py#L31

I001 isort found an import in the wrong position
Raw output
amypet/centiloid.py:31:1: I001 isort found an import in the wrong position
import matplotlib.image as mpimg

Check failure on line 32 in amypet/centiloid.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] amypet/centiloid.py#L32

I001 isort found an import in the wrong position
Raw output
amypet/centiloid.py:32:1: I001 isort found an import in the wrong position

Check failure on line 33 in amypet/centiloid.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] amypet/centiloid.py#L33

I004 isort found an unexpected blank line in imports
Raw output
amypet/centiloid.py:33:1: I004 isort found an unexpected blank line in imports

log = logging.getLogger(__name__)
TRACERS = set(params['tracer_names'].keys())

Expand Down Expand Up @@ -83,5 +87,14 @@ def run(inpath, tracer='pib', start=None, end=None, dynamic_break=False, voxsz=2
'CL': next(iter(out_cl.values())),
'_amypet_imscroll': (out_cl[next(iter(out_cl))]['fqc'], dkm['fig'])}

return {
'CL': next(iter(out_cl.values())), '_amypet_imscroll': out_cl[next(iter(out_cl))]['fqc']}


image_path = out_cl['fqc']

Check failure on line 92 in amypet/centiloid.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] amypet/centiloid.py#L92

E303 too many blank lines (3)
Raw output
amypet/centiloid.py:92:5: E303 too many blank lines (3)
image = mpimg.imread(image_path)
fig, ax = plt.subplots(figsize=(12,16))

Check failure on line 94 in amypet/centiloid.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] amypet/centiloid.py#L94

E231 missing whitespace after ','
Raw output
amypet/centiloid.py:94:39: E231 missing whitespace after ','
plt.imshow(image)
plt.axis('off')
plt.show()

return {'CL':out_cl['cl']}

Check failure on line 99 in amypet/centiloid.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] amypet/centiloid.py#L99

E231 missing whitespace after ':'
Raw output
amypet/centiloid.py:99:17: E231 missing whitespace after ':'
#{'CL': next(iter(out_cl.values())), '_amypet_imscroll': out_cl['fqc']}

Check failure on line 100 in amypet/centiloid.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] amypet/centiloid.py#L100

E265 block comment should start with '# '
Raw output
amypet/centiloid.py:100:5: E265 block comment should start with '# '

0 comments on commit eb5a9cc

Please sign in to comment.