for example, if I have
s = P[0,1,1,0]
and I call
s => [1.0,0.0,0.0,1.0]
I’ve tried casting but that doesn’t work. Is there a way I can represent the pattern in this format?
s-prime => [0,1,1,0]
seems like this works for printing:
Print(Pattern([round(i) for i in s.invert()]))
Is there a better work around?