Skip to content
Snippets Groups Projects
Commit 7b6a750a authored by Lucas Miranda's avatar Lucas Miranda
Browse files

Refactored pose_utils.py

parent 9c87263b
Branches
Tags
No related merge requests found
...@@ -313,10 +313,14 @@ def single_behaviour_analysis( ...@@ -313,10 +313,14 @@ def single_behaviour_analysis(
stat_dict = {} stat_dict = {}
for i in combinations(treatment_dict.keys(), 2): for i in combinations(treatment_dict.keys(), 2):
# Solves issue with automatically generated examples # Solves issue with automatically generated examples
if ( if np.any(
beh_dict[i[0]] == beh_dict[i[1]] np.array(
or np.var(beh_dict[i[0]]) == 0 [
or np.var(beh_dict[i[1]]) == 0 beh_dict[i[0]] == beh_dict[i[1]],
np.var(beh_dict[i[0]]) == 0,
np.var(beh_dict[i[1]]) == 0,
]
)
): ):
stat_dict[i] = "Identical sources. Couldn't run" stat_dict[i] = "Identical sources. Couldn't run"
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment