Skip to content

Add option to include layout json #164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 4, 2025

Conversation

chrishalcrow
Copy link
Member

Allows you to run e.g.
sigui --layout_file=my_layout.json ~/Work/my_projects/si_talk/M25_D18/kilosort4_sa
where if your json looks like this:

{
    "zone1": ["spikeamplitude"], 
    "zone2": [], 
    "zone3": ["waveform"], 
    "zone4": ["similarity"], 
    "zone5": ["unitlist"], 
    "zone6": ["correlogram"], 
    "zone7": ["spikedepth"], 
    "zone8": []
}

you get a GUI that looks like this:

Screenshot 2025-07-28 at 15 33 15

Works for web too!

Also added checks to verify that the keys and values in the json file are valid (and does this check if you programatically pass a dict).

Will add docs if you agree with the PR, and after we debate #163.

@@ -1,3 +1,6 @@
import json
from spikeinterface_gui.backend_qt import possible_class_views
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be backend independant here I think.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oup, good catch, fixed!

@alejoe91 alejoe91 merged commit 9387233 into SpikeInterface:main Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants