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

Various fixes #96

Merged
merged 7 commits into from
Nov 21, 2024
Merged

Various fixes #96

merged 7 commits into from
Nov 21, 2024

Conversation

alejoe91
Copy link
Contributor

@alejoe91 alejoe91 commented Nov 21, 2024

  • Protect phy restore (double click required)
  • Add flip y axis check box
  • Fix bug when phy groups are all missing
  • Add spatial maps as dependency

@@ -297,12 +297,14 @@ def compute_and_set_unit_groups(sorting, recording):
unit_groups = recording.get_channel_groups()[np.array(list(extremum_channel_indices.values()))]
sorting.set_property("group", unit_groups)
else:
unit_groups = sorting.get_property("group").astype("str")
unit_groups = sorting.get_property("group").astype("U20")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mariapfj this was the cause of the last issue. In case there are only merges/splits in Phy, all groups are nan so casting to string makes a 3-character object. When setting a value to tetrode*, it became tet...

@alejoe91 alejoe91 changed the title Protect phy restore, flip y axis, and add spatial maps as dependency Various fixes Nov 21, 2024
@alejoe91 alejoe91 merged commit d031d06 into main Nov 21, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant