Skip to content

Commit f6ed515

Browse files
committed
Fix conflicts
1 parent c198d6d commit f6ed515

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

spikeinterface_gui/curationview.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,17 +363,19 @@ def _panel_make_layout(self):
363363
)
364364
save_button.on_click(save_button_callback)
365365

366-
self.download_button = pn.widgets.FileDownload(
366+
download_button = pn.widgets.FileDownload(
367367
button_type="primary", filename="curation.json", callback=self._panel_generate_json, height=30
368368
)
369-
buttons_row.append(self.download_button)
370369

371370
restore_button = pn.widgets.Button(name="Restore", button_type="primary", height=30)
372371
restore_button.on_click(self._panel_restore_units)
373372

374373
remove_merge_button = pn.widgets.Button(name="Unmerge", button_type="primary", height=30)
375374
remove_merge_button.on_click(self._panel_unmerge)
376375

376+
remove_split_button = pn.widgets.Button(name="Unsplit", button_type="primary", height=30)
377+
remove_split_button.on_click(self._panel_unsplit)
378+
377379
# Create layout
378380
buttons_save = pn.Row(
379381
save_button,
@@ -388,7 +390,7 @@ def _panel_make_layout(self):
388390
buttons_curate = pn.Row(
389391
restore_button,
390392
remove_merge_button,
391-
remove_split,
393+
remove_split_button,
392394
sizing_mode="stretch_width",
393395
)
394396

@@ -404,7 +406,7 @@ def _panel_make_layout(self):
404406
# Create main layout with proper sizing
405407
sections = pn.Row(self.table_delete, self.table_merge, self.table_split, sizing_mode="stretch_width")
406408
self.layout = pn.Column(
407-
self.buttons_save, buttons_curate, sections, shortcuts_component, scroll=True, sizing_mode="stretch_both"
409+
save_sections, buttons_curate, sections, shortcuts_component, scroll=True, sizing_mode="stretch_both"
408410
)
409411

410412
def _panel_refresh(self):
@@ -454,7 +456,7 @@ def _panel_ensure_save_warning_message(self):
454456
import panel as pn
455457

456458
alert_markdown = pn.pane.Markdown(
457-
f"""⚠️⚠️⚠️ Your curation is not saved""",
459+
f"""⚠️ Your curation is not saved!""",
458460
hard_line_break=True,
459461
styles={"color": "red", "font-size": "16px"},
460462
name="curation_save_warning",

spikeinterface_gui/tests/test_panel_embedded.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212
analyzer = load_sorting_analyzer(test_folder / "sorting_analyzer")
1313

1414
# State in the parent app
15-
curation_result = pn.state.cache.setdefault("curation_result", {})
1615
status_md = pn.pane.Markdown("No curation submitted yet.")
1716

1817

1918
def on_curation_saved(curation_data, title):
2019
"""This runs in the parent app's context — pure Python, no JS."""
21-
curation_result["data"] = curation_data
2220
status_md.object = f"{title}\n\nReceived curation data:\n```\n{curation_data}\n```"
2321
# You can do anything here: save to DB, trigger a pipeline, etc.
2422

0 commit comments

Comments
 (0)