Skip to content
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

Add html representation for recording objects #2803

Merged
merged 2 commits into from
May 13, 2024

Conversation

h-mayorquin
Copy link
Collaborator

Similar to #2747 but for recording objects

image

Note that this avoids the problem that once bothered @samuelgarcia about displaying too much. This displays less than the string representation by making the segment representation optional (you need to click).

Here an interactive version you can click:

NoiseGeneratorRecording: 4 channels - 30.0kHz - 3 segments - 6,300,000 samples - 210.00s (3.50 minutes) - float32 dtype - 96.13 MiB
Segments
  1. Samples: 300,000, Duration: 10.00s, Memory: 4.58 MiB
  2. Samples: 600,000, Duration: 20.00s, Memory: 9.16 MiB
  3. Samples: 5,400,000, Duration: 180.00s (3.00 minutes), Memory: 82.40 MiB
Channel IDs
    [0 1 2 3]
Annotations
  • is_filtered : True
  • probe_0_planar_contour : [[ -25. 85.] [ -25. -25.] [ 0. -125.] [ 25. -25.] [ 25. 85.]]
  • probes_info : [{}]
Channel Properties
    contact_vector [(0, 0., 0., 'circle', 6., '', '0', 0, 'um', 1., 0., 0., 1.) (0, 0., 20., 'circle', 6., '', '1', 1, 'um', 1., 0., 0., 1.) (0, 0., 40., 'circle', 6., '', '2', 2, 'um', 1., 0., 0., 1.) (0, 0., 60., 'circle', 6., '', '3', 3, 'um', 1., 0., 0., 1.)]
    location [[ 0. 0.] [ 0. 20.] [ 0. 40.] [ 0. 60.]]
    group [0 0 0 0]

@h-mayorquin h-mayorquin added the core Changes to core module label May 3, 2024
@h-mayorquin h-mayorquin self-assigned this May 3, 2024
@h-mayorquin
Copy link
Collaborator Author

Another example from an Intan recording I am working with (note this one does not have segments):

IntanRecordingExtractor: 192 channels - 20.0kHz - 1 segments - 71,172,603 samples - 3,558.63s (59.31 minutes) - int16 dtype - 25.45 GiB
Channel IDs
    ['A-000' 'A-001' 'A-002' 'A-003' 'A-004' 'A-005' 'A-006' 'A-007' 'A-008' 'A-009' 'A-010' 'A-011' 'A-012' 'A-013' 'A-014' 'A-015' 'A-016' 'A-017' 'A-018' 'A-019' 'A-020' 'A-021' 'A-022' 'A-023' 'A-024' 'A-025' 'A-026' 'A-027' 'A-028' 'A-029' 'A-030' 'A-031' 'B-000' 'B-001' 'B-002' 'B-003' 'B-004' 'B-005' 'B-006' 'B-007' 'B-008' 'B-009' 'B-010' 'B-011' 'B-012' 'B-013' 'B-014' 'B-015' 'B-016' 'B-017' 'B-018' 'B-019' 'B-020' 'B-021' 'B-022' 'B-023' 'B-024' 'B-025' 'B-026' 'B-027' 'B-028' 'B-029' 'B-030' 'B-031' 'C-000' 'C-001' 'C-002' 'C-003' 'C-004' 'C-005' 'C-006' 'C-007' 'C-008' 'C-009' 'C-010' 'C-011' 'C-012' 'C-013' 'C-014' 'C-015' 'C-016' 'C-017' 'C-018' 'C-019' 'C-020' 'C-021' 'C-022' 'C-023' 'C-024' 'C-025' 'C-026' 'C-027' 'C-028' 'C-029' 'C-030' 'C-031' 'D-000' 'D-001' 'D-002' 'D-003' 'D-004' 'D-005' 'D-006' 'D-007' 'D-008' 'D-009' 'D-010' 'D-011' 'D-012' 'D-013' 'D-014' 'D-015' 'D-016' 'D-017' 'D-018' 'D-019' 'D-020' 'D-021' 'D-022' 'D-023' 'D-024' 'D-025' 'D-026' 'D-027' 'D-028' 'D-029' 'D-030' 'D-031' 'E-000' 'E-001' 'E-002' 'E-003' 'E-004' 'E-005' 'E-006' 'E-007' 'E-008' 'E-009' 'E-010' 'E-011' 'E-012' 'E-013' 'E-014' 'E-015' 'E-016' 'E-017' 'E-018' 'E-019' 'E-020' 'E-021' 'E-022' 'E-023' 'E-024' 'E-025' 'E-026' 'E-027' 'E-028' 'E-029' 'E-030' 'E-031' 'F-000' 'F-001' 'F-002' 'F-003' 'F-004' 'F-005' 'F-006' 'F-007' 'F-008' 'F-009' 'F-010' 'F-011' 'F-012' 'F-013' 'F-014' 'F-015' 'F-016' 'F-017' 'F-018' 'F-019' 'F-020' 'F-021' 'F-022' 'F-023' 'F-024' 'F-025' 'F-026' 'F-027' 'F-028' 'F-029' 'F-030' 'F-031']
Annotations
  • is_filtered : False
Channel Properties
    gain_to_uV [0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195]
    offset_to_uV [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]
    channel_name ['A-000' 'A-001' 'A-002' 'A-003' 'A-004' 'A-005' 'A-006' 'A-007' 'A-008' 'A-009' 'A-010' 'A-011' 'A-012' 'A-013' 'A-014' 'A-015' 'A-016' 'A-017' 'A-018' 'A-019' 'A-020' 'A-021' 'A-022' 'A-023' 'A-024' 'A-025' 'A-026' 'A-027' 'A-028' 'A-029' 'A-030' 'A-031' 'B-000' 'B-001' 'B-002' 'B-003' 'B-004' 'B-005' 'B-006' 'B-007' 'B-008' 'B-009' 'B-010' 'B-011' 'B-012' 'B-013' 'B-014' 'B-015' 'B-016' 'B-017' 'B-018' 'B-019' 'B-020' 'B-021' 'B-022' 'B-023' 'B-024' 'B-025' 'B-026' 'B-027' 'B-028' 'B-029' 'B-030' 'B-031' 'C-000' 'C-001' 'C-002' 'C-003' 'C-004' 'C-005' 'C-006' 'C-007' 'C-008' 'C-009' 'C-010' 'C-011' 'C-012' 'C-013' 'C-014' 'C-015' 'C-016' 'C-017' 'C-018' 'C-019' 'C-020' 'C-021' 'C-022' 'C-023' 'C-024' 'C-025' 'C-026' 'C-027' 'C-028' 'C-029' 'C-030' 'C-031' 'D-000' 'D-001' 'D-002' 'D-003' 'D-004' 'D-005' 'D-006' 'D-007' 'D-008' 'D-009' 'D-010' 'D-011' 'D-012' 'D-013' 'D-014' 'D-015' 'D-016' 'D-017' 'D-018' 'D-019' 'D-020' 'D-021' 'D-022' 'D-023' 'D-024' 'D-025' 'D-026' 'D-027' 'D-028' 'D-029' 'D-030' 'D-031' 'E-000' 'E-001' 'E-002' 'E-003' 'E-004' 'E-005' 'E-006' 'E-007' 'E-008' 'E-009' 'E-010' 'E-011' 'E-012' 'E-013' 'E-014' 'E-015' 'E-016' 'E-017' 'E-018' 'E-019' 'E-020' 'E-021' 'E-022' 'E-023' 'E-024' 'E-025' 'E-026' 'E-027' 'E-028' 'E-029' 'E-030' 'E-031' 'F-000' 'F-001' 'F-002' 'F-003' 'F-004' 'F-005' 'F-006' 'F-007' 'F-008' 'F-009' 'F-010' 'F-011' 'F-012' 'F-013' 'F-014' 'F-015' 'F-016' 'F-017' 'F-018' 'F-019' 'F-020' 'F-021' 'F-022' 'F-023' 'F-024' 'F-025' 'F-026' 'F-027' 'F-028' 'F-029' 'F-030' 'F-031']

@h-mayorquin h-mayorquin marked this pull request as ready for review May 6, 2024 19:21
@samuelgarcia
Copy link
Member

Merci!

@samuelgarcia samuelgarcia merged commit 68f1010 into SpikeInterface:main May 13, 2024
11 checks passed
@h-mayorquin h-mayorquin deleted the add_recording_html_repr branch May 13, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Changes to core module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants