fixes two bugs in visual_behavior.data_access.reformat.add_engagement_state_to_trials_table
1) replaces np.argmin with pd.idxmin: argmin worked when I developed the function, but has suddenly stopped working. I changed my pandas version, which might explain why. Regardless, idxmin should be more reliable
2) fixed double assignment
Also adds a test on visual_behavior.data_access.reformat.add_engagement_state_to_trials_table.
fixes two bugs in
visual_behavior.data_access.reformat.add_engagement_state_to_trials_table
1) replaces
np.argmin
withpd.idxmin
: argmin worked when I developed the function, but has suddenly stopped working. I changed my pandas version, which might explain why. Regardless, idxmin should be more reliable2) fixed double assignment
Also adds a test on
visual_behavior.data_access.reformat.add_engagement_state_to_trials_table
.Pinning hdmf at 2.4.0 to deal with this issue: https://github.com/AllenInstitute/AllenSDK/issues/2098