Upload reader.py with huggingface_hub
Browse files
reader.py
CHANGED
|
@@ -135,6 +135,9 @@ class MicronsReader:
|
|
| 135 |
if session_key:
|
| 136 |
return list(self.f[f'sessions/{session_key}/meta/area_indices'].keys())
|
| 137 |
return list(self.f['brain_areas'].keys())
|
|
|
|
|
|
|
|
|
|
| 138 |
|
| 139 |
def print_structure(self, max_items=5, follow_links=False):
|
| 140 |
"""
|
|
|
|
| 135 |
if session_key:
|
| 136 |
return list(self.f[f'sessions/{session_key}/meta/area_indices'].keys())
|
| 137 |
return list(self.f['brain_areas'].keys())
|
| 138 |
+
|
| 139 |
+
def count_trials_per_hash(self):
|
| 140 |
+
return {k: len(v['instances']) for k, v in self.f['videos'].items()}
|
| 141 |
|
| 142 |
def print_structure(self, max_items=5, follow_links=False):
|
| 143 |
"""
|