Commit 7b6a750a authored by lucas_miranda's avatar lucas_miranda
Browse files

Refactored pose_utils.py

parent 9c87263b
......@@ -313,10 +313,14 @@ def single_behaviour_analysis(
stat_dict = {}
for i in combinations(treatment_dict.keys(), 2):
# Solves issue with automatically generated examples
if (
beh_dict[i[0]] == beh_dict[i[1]]
or np.var(beh_dict[i[0]]) == 0
or np.var(beh_dict[i[1]]) == 0
if np.any(
np.array(
[
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"
else:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment