mirkobunse / critdd

Critical difference diagrams with Python and Tikz
https://mirkobunse.github.io/critdd
Other
22 stars 3 forks source link

Allow 2D diagrams to have different number of observations per diagram #5

Closed MatthiasJakobs closed 11 months ago

MatthiasJakobs commented 11 months ago

Instead of asserting that the data to create 2D diagrams is a tensor, and thus enforcing the same number of observations per diagram, we can allow a list of tensors instead. As long as the number of treatments is identical, I do not see a necessity to enforce a tensor. This should be backward-compatible since len also works on tensors.

mirkobunse commented 11 months ago

I love it, thanks! This also fixes a bug in the default naming of diagrams and treatments, which I wasn't aware of.