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 functional WheelMove table. #1

Merged
merged 9 commits into from Dec 13, 2018

Conversation

shenshan
Copy link

No description provided.

wheel_moves_types_str[wheel_moves_types.ravel() == 0] = "CW"
wheel_moves_types_str[wheel_moves_types.ravel() == 1] = "CCW"
wheel_moves_types_str[wheel_moves_types.ravel() == 2] = "Flinch"
assert len(np.unique(np.array([len(wheel_moves_intervals), len(wheel_moves_types)]))) == 1, 'Loaded wheel move files do not have the same length'
Copy link
Member

Choose a reason for hiding this comment

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

assert len(wheen_movie_intervals) == len(wheel_movies_types), 'Loaded wheel move files do not have the same length'

@@ -163,7 +173,15 @@ def make(self, key):
wheel_move_key['wheel_move_id'] = idx_move + 1
wheel_move_key['wheel_move_start_time'] = wheel_moves_intervals[idx_move, 0]
wheel_move_key['wheel_move_end_time'] = wheel_moves_intervals[idx_move, 1]
wheel_move_key['wheel_move_type'] = wheel_moves_types_str[idx_move]

wheel_move_type = wheel_moves_types[idx_move]
Copy link
Member

Choose a reason for hiding this comment

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

This code block can be made more efficient and less error-prone.

@eywalker eywalker merged commit ef47182 into datajoint-company:master Dec 13, 2018
shenshan added a commit to shenshan/IBL-pipeline that referenced this pull request Jan 9, 2019
iamamutt pushed a commit that referenced this pull request Aug 25, 2021
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.

None yet

3 participants