Skip to content

Plexon signal stream_ids are not cosistent across reads #1523

Closed

Description

@h-mayorquin

The problem is here:

groups = set(zip(sig_channels["sampling_rate"], all_sig_length))
signal_streams = []
self._signal_length = {}
self._sig_sampling_rate = {}
for stream_index, (sr, length) in enumerate(groups):
stream_id = str(stream_index)

We use set to form unique users group, enumerate over them to determine stream_index and use str(stream_index) as a stream_id. But this does not work because iterating over sets and determining sets is not deterministic.

Activity

  1. added this to the 0.14.0 milestone on Aug 16, 2024
  2. samuelgarcia commented on Aug 27, 2024

    @samuelgarcia
    Contributor

    yep. set is dangerous for that. np.unique() could be a better choice.

  3. zm711 commented on Aug 28, 2024

    @zm711
    Contributor

    Fixed with a dictionary strategy in #1524. Closing.

  4. modified the milestones: 0.14.0, 0.13.4 on Oct 12, 2024
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions