UnboundLocalError Traceback (most recent call last)
<ipython-input-151-bf0c8dc5f467> in <module>
1 #theo = mf.TheoryTemperature(us, cls=(input_cl[0] *(1-fl )*fl2 ) )
----> 2 theo, mu = mf.TheoryP2(us, Cls=(input_cl[1:3] *(1-fl )*fl2 ) )
~/miniconda/envs/compsep/lib/python3.9/site-packages/pynkowski/theory/p2.py in __init__(self, us, Cls, μ, average_bin, edges)
134 if (Cls is not None) and (μ is None):
135 if (Cls.ndim == 2) and (Cls.shape[0]==2):
--> 136 cls = (cls[0]+cls[1])/2.
137 elif (Cls.ndim == 1):
138 cls = cls/2.
UnboundLocalError: local variable 'cls' referenced before assignment