Skip to content

Commit ebb11e5

Browse files
committed
fix import and flake
1 parent 4333ff3 commit ebb11e5

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

atlaselectrophysiology/ephys_atlas_gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def save_plots(self):
327327
# make folder to save plots to
328328
try:
329329
sess_info = (self.loaddata.subj + '_' + str(self.loaddata.date) + '_' +
330-
self.loaddata.probe_label + '_')
330+
self.loaddata.probe_label + '_')
331331
image_path_overview = self.alf_path.joinpath('GUI_plots')
332332
image_path = image_path_overview.joinpath(sess_info[:-1])
333333
except Exception:

atlaselectrophysiology/load_data.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import ibllib.pipes.histology as histology
44
from ibllib.ephys.neuropixel import SITES_COORDINATES
55
import ibllib.atlas as atlas
6-
# from ibllib.qc.alignment_qc import AlignmentQC
6+
from ibllib.qc.alignment_qc import AlignmentQC
77
from oneibl.one import ONE
88
from pathlib import Path
99
import alf.io
@@ -15,7 +15,6 @@
1515

1616
class LoadData:
1717
def __init__(self, one=None, brain_atlas=None, testing=False, probe_id=None):
18-
from ibllib.qc.alignment_qc import AlignmentQC
1918
self.one = one or ONE(base_url=ONE_BASE_URL)
2019
self.brain_atlas = brain_atlas or atlas.AllenAtlas(25)
2120

atlasview/atlasview.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def add_scatter_feature(self, data):
7979

8080
def add_image_layer(self, **kwargs):
8181
"""
82-
:param pg_kwargs: pyqtgraph setImage arguments: {'levels': None, 'lut': None, 'opacity': 1.0}
82+
:param pg_kwargs: pyqtgraph setImage arguments: {'levels': None, 'lut': None,
83+
'opacity': 1.0}
8384
:param slice_kwargs: ibllib.atlas.slice arguments: {'volume': 'image', 'mode': 'clip'}
8485
:return:
8586
"""
@@ -151,7 +152,8 @@ def add_scatter(self):
151152

152153
def add_image_layer(self, **kwargs):
153154
"""
154-
:param pg_kwargs: pyqtgraph setImage arguments: {'levels': None, 'lut': None, 'opacity': 1.0}
155+
:param pg_kwargs: pyqtgraph setImage arguments: {'levels': None, 'lut': None,
156+
'opacity': 1.0}
155157
:param slice_kwargs: ibllib.atlas.slice arguments: {'volume': 'image', 'mode': 'clip'}
156158
:return:
157159
"""

atlasview/launcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from pathlib import Path
2+
import numpy as np
13
from atlasview import atlasview # mouais il va falloir changer ça
24
av = atlasview.view() # need to have an output argument here or the garbage collector will clean
35
# it up and boom
@@ -12,8 +14,6 @@
1214
- should we add horizontal slices ?
1315
"""
1416

15-
from pathlib import Path
16-
import numpy as np
1717
# add brain regions feature:
1818
reg_values = np.load(Path(atlasview.__file__).parent.joinpath('region_values.npy'))
1919
av.add_regions_feature(reg_values, 'Blues', opacity=0.7)

0 commit comments

Comments
 (0)