AssertionError when using self-defined nested list in Pyspc

399 views Asked by At

I installed pyspc and run on Jupyter Notebook successfully when using original samples. But when I tried introducing a self defined nested list and an error message showed up. pyspc library: https://github.com/carlosqsilva/pyspc

from pyspc import*
import numpy
abc=[[2,3,4],[4,5.6],[1,4,5],[3,4,4],[4,5,6]]
a=spc(abc)+xbar_rbar()+rules()+rbar()
print(a)

error message for AssertionError

Thank you for advise where went wrong and how to fix it.

1

There are 1 answers

1
MaNKuR On BEST ANSWER

Check the data you have accidentally used the . instead of , for value [4,5.6], second element of the list.

Here is the corrected data

abc=[[2,3,4],[4,5,6],[1,4,5],[3,4,4],[4,5,6]]

Hope this will help.