roahmlab/zonopy

Broken function: polyZonotope.slice_dep

Opened this issue · 0 comments

The function outputs an error upon execution, TypeError: any() got an unexpected keyword argument 'dim'

Code:

x0 = [1.57,0.1]
x0_range = [0.75,0.01]

x_zono: zp.polyZonotope = zp.polyZonotope([[1.0],[1.0]], n_dep_gens=1, id=0, device='cpu')
y_zono: zp.polyZonotope = zp.polyZonotope([[2.0],[2.0]], n_dep_gens= 1, id=1, device='cpu')
z_zono: zp.polyZonotope = zp.polyZonotope([[3.0],[3.0]], n_dep_gens= 1, id=2, device='cpu')
mul_pz: zp.polyZonotope = x_zono*y_zono*z_zono
mul_pz.slice_dep(0,0)

Output:
image