Skip to content

Commit c39d636

Browse files
committed
update docstring
1 parent 0ed1402 commit c39d636

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

spikeinterface_gui/backend_qt.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from .myqt import QT
22
import pyqtgraph as pg
33
import markdown
4-
4+
import numpy as np
5+
from copy import copy
56

67
import weakref
78

@@ -234,9 +235,6 @@ def create_main_layout(self):
234235
view_names = [view_name for view_name in view_names if view_name in self.views.keys()]
235236
widgets_zone[zone] = view_names
236237

237-
import numpy as np
238-
from copy import copy
239-
240238
all_zones = [f'zone{a}' for a in range(1,9)]
241239
all_zones_array = np.transpose(np.reshape(all_zones, (2,4)))
242240
is_zone = np.array([(widgets_zone.get(zone) is not None) and (len(widgets_zone.get(zone)) > 0) for zone in all_zones])

spikeinterface_gui/main.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def run_mainwindow(
3030
panel_start_server_kwargs=None,
3131
panel_window_servable=True,
3232
verbose=False,
33+
screenshot_name=""
3334
):
3435
"""
3536
Create the main window and start the QT app loop.
@@ -121,8 +122,8 @@ def run_mainwindow(
121122

122123

123124
app = mkQApp()
124-
125-
win = QtMainWindow(controller, layout_preset=layout_preset, layout=layout)
125+
126+
win = QtMainWindow(controller, layout_preset=layout_preset, layout=layout, screenshot_name=screenshot_name)
126127
win.setWindowTitle('SpikeInterface GUI')
127128
# Set window icon
128129
icon_file = Path(__file__).absolute().parent / 'img' / 'si.png'
@@ -273,7 +274,7 @@ def run_mainwindow_cli():
273274
if args.verbose:
274275
print('Loading analyzer...')
275276
assert check_folder_is_analyzer(analyzer_folder), f'The folder {analyzer_folder} is not a valid SortingAnalyzer folder'
276-
analyzer = load_sorting_analyzer(analyzer_folder, load_extensions=not is_path_remote(analyzer_folder))
277+
analyzer = load_sorting_analyzer(analyzer_folder, load_extensions=False)
277278
if args.verbose:
278279
print('Analyzer loaded')
279280

@@ -312,3 +313,4 @@ def run_mainwindow_cli():
312313
layout=args.layout_file,
313314
curation_dict=curation_data,
314315
)
316+

0 commit comments

Comments
 (0)