We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
turn
linear_position
1 parent 1a841bd commit 4792eddCopy full SHA for 4792edd
1 file changed
loren_frank_data_processing/position.py
@@ -133,9 +133,9 @@ def get_interpolated_position_dataframe(epoch_key, animals,
133
* position_df.linear_distance)
134
135
categorical_columns = ['labeled_segments', 'from_well', 'to_well', 'task',
136
- 'is_correct']
+ 'is_correct', 'turn']
137
continuous_columns = ['head_direction', 'speed', 'linear_distance',
138
- 'x_position', 'y_position']
+ 'x_position', 'y_position', 'linear_position']
139
position_categorical = (position_df
140
.drop(continuous_columns, axis=1)
141
.reindex(index=time, method='pad'))
@@ -244,5 +244,7 @@ def get_segments_df(epoch_key, animals, max_distance_from_well=5,
244
max_distance_from_well=max_distance_from_well)
245
segments_df = score_inbound_outbound(
246
segments_df, epoch_key, animals, min_distance_traveled)
247
+ segments_df = segments_df.loc[
248
+ :, ['from_well', 'to_well', 'task', 'is_correct', 'turn']]
249
250
return segments_df, labeled_segments
0 commit comments