Skip to content

Commit a1ceb72

Browse files
committed
Fix closures
1 parent f01c8b6 commit a1ceb72

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/spikeinterface/core/baserecording.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,11 @@ def _repr_html_(self, parent_name=None):
159159
value_formatted = np.asarray(value)
160160
html_properties += f"<details><summary> <strong> {key} </strong> </summary>{value_formatted}</details>"
161161
html_properties += "</ul></details>"
162+
162163
if self.get_parent():
163-
html_parent = f"<details style='{common_style}'> <summary><strong>Parent</strong></summary>"
164+
html_parent = f"<details style='{common_style}'> <summary><strong>Parent</strong></summary><ul>"
164165
html_parent += self.get_parent()._repr_html_(parent_name=self.name)
166+
html_parent += "</ul></details>"
165167
else:
166168
html_parent = ""
167169

src/spikeinterface/core/basesorting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ def _repr_html_(self, parent_name=None):
6969
html_unit_properties += "</ul></details>"
7070

7171
if self.get_parent():
72-
html_parent = f"<details style='{common_style}'> <summary><strong>Parent</strong></summary>"
72+
html_parent = f"<details style='{common_style}'> <summary><strong>Parent</strong></summary><ul>"
7373
html_parent += self.get_parent()._repr_html_(parent_name=self.name)
74+
html_parent += "</ul></details>"
7475
else:
7576
html_parent = ""
7677

0 commit comments

Comments
 (0)