Skip to content

probe_planar_contour lost when splitting & aggregating channels #3947

Closed

Description

@RobertoDF

Hi,
I noticed that probe inside raw_rec after the splitting and aggregating lose .probe_planar_contour.

        probes = read_probeinterface(probe_json)
        raw_rec = raw_rec.set_probegroup(probes, group_mode="by_shank")
        split_recording_dict = raw_rec.split_by("group")
        proc_rec = spre.highpass_filter(recording=split_recording_dict)
        proc_rec = spre.common_reference(recording=proc_rec, operator="median", reference="global")
        raw_rec = aggregate_channels(proc_rec)
        raw_rec.clear_channel_groups()

so I am forced to call again raw_rec = raw_rec.set_probegroup(probes, group_mode="by_shank") afterward, is this fixable?

Activity

  1. added
    question
    on May 23, 2025
  2. alejoe91 commented on May 23, 2025

    @alejoe91
    Member

    Hi @RobertoDF

    I think we could check if the probe_planar_contour is the same for all recordings to be aggregated, and if so propagate it to the aggregated recording. Do want to give it a try?

  3. RobertoDF commented on May 23, 2025

    @RobertoDF
    ContributorAuthor

    Somehow I can t use self.set_probegroup() from within the ChannelsAggregationRecording class so I don't know how to do this.

    Should I add a disclaimer in the docs regarding maybe?

  4. alejoe91 commented on May 23, 2025

    @alejoe91
    Member

    I can take a look. Probe metadata are propagated as annotations, so we'll need to check annotations for each sub-gorup.

  5. RobertoDF commented on May 27, 2025

    @RobertoDF
    ContributorAuthor

    I see, I try now

  6. added a commit that references this issue on May 27, 2025
    a416779
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions