Skip to content

Commit baddb92

Browse files
behavior object is not defined!
1 parent b29b19f commit baddb92

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

visual_behavior/utilities.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,10 @@ def cache_response_probability(behavior_session_id, engaged_only=True):
13361336
stimulus_presentations = stimulus_presentations[stimulus_presentations.engagement_state == 'engaged']
13371337

13381338
# compute response probability
1339-
response_matrix = behavior.calculate_response_matrix(stimulus_presentations, aggfunc=np.mean, sort_by_column=True,
1339+
# BEHAVIOR OBJECT IS NOT DEFINED. CHANGED IT TO DATASET, BUT NOT SURE IF THAT'S CORRECT ONE. IRYNA NOV 11,2022
1340+
# response_matrix = behavior.calculate_response_matrix(stimulus_presentations, aggfunc=np.mean, sort_by_column=True,
1341+
# engaged_only=engaged_only)
1342+
response_matrix = dataset.calculate_response_matrix(stimulus_presentations, aggfunc=np.mean, sort_by_column=True,
13401343
engaged_only=engaged_only)
13411344

13421345
filename = 'behavior_session_id={}.h5'.format(behavior_session_id)

0 commit comments

Comments
 (0)