You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix sigui CLI --recording to reference correct args.recording_base_folder (#274)
* Fix sigui CLI --recording to reference correct args.recording_base_folder
argparse was stores --recording-base-folder as args.recording_base_folder, but
run_mainwindow_cli() was trying to access the non-existent args.recording_base_path.
That error was caught by the except and only printed a misleading
'check the path or the file format', so --recording silently failed.
* Verbalize real error and fail loudly on sigui CLI --recording load failure
* Replace _ to - in CLI args
Co-authored-by: Alessio Buccino <alejoe9187@gmail.com>
---------
Co-authored-by: Alessio Buccino <alejoe9187@gmail.com>
Copy file name to clipboardExpand all lines: spikeinterface_gui/main.py
+16-12Lines changed: 16 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -316,13 +316,13 @@ def run_mainwindow_cli():
316
316
parser.add_argument('--recording', help='Path to a recording file (.json/.pkl) or folder that can be loaded with spikeinterface.load', default=None)
317
317
parser.add_argument('--recording-base-folder', help='Base folder path for the recording (if .json/.pkl)', default=None)
318
318
parser.add_argument('--verbose', help='Make the output verbose', action='store_true', default=False)
319
-
parser.add_argument('--skip_extensions', help='Choose which extensions not to load, comma separated (e.g. waveforms,principal_components)', default=None)
319
+
parser.add_argument('--skip-extensions', help='Choose which extensions not to load, comma separated (e.g. waveforms,principal_components)', default=None)
320
320
parser.add_argument('--port', help='Port for web mode', default=0, type=int)
321
321
parser.add_argument('--address', help='Address for web mode', default='localhost')
322
322
parser.add_argument('--layout-file', help='Path to json file defining layout', default=None)
323
323
parser.add_argument('--curation-file', help='Path to json file defining a curation', default=None)
324
324
parser.add_argument('--settings-file', help='Path to json file specifying the settings of each view', default=None)
325
-
parser.add_argument('--disable_save_settings_button', help='Disables button allowing for user to save default settings', action='store_true', default=False)
325
+
parser.add_argument('--disable-save-settings-button', help='Disables button allowing for user to save default settings', action='store_true', default=False)
0 commit comments