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

408 check out contiguous channel property for discrete data #415

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
CHG: Make unit indices also 0-based
- to be in sync with channel

Changes to be committed:
	modified:   syncopy/datatype/discrete_data.py
tensionhead committed Jan 17, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 6aecbf353b98e486c5651312926e5fc86ec6154a
2 changes: 1 addition & 1 deletion syncopy/datatype/discrete_data.py
Original file line number Diff line number Diff line change
@@ -455,7 +455,7 @@ def _default_unit_labels(self):

if self.data is not None:
unit_max = self.unit_idx.max()
return np.array(["unit" + str(int(i)).zfill(len(str(unit_max)) + 1)
return np.array(["unit" + str(int(i + 1)).zfill(len(str(unit_max)) + 1)
for i in self.unit_idx])
else:
return None