intelligent-control-lab / guard

MIT License
39 stars 6 forks source link

too many values to unpack (expected 3) in CPO #2

Closed xueliu8617112 closed 1 month ago

xueliu8617112 commented 7 months ago

Hello, in cpo.py, line 317, there are some errors when i run the code.

image

i think that some like data['act'] should be deleted .

Haihan-W commented 7 months ago

I encountered the exact same problem when running cpo.py, but I found that the reason is because the number of variables in the left hand side is 3 but there are more than 3 values at the right hand side. So if you just delete the irrelevant values at the right hand side and only keep the 3 that correspond to left hand side variable, the code should work fine.

LiangZhisama commented 7 months ago

Thanks for the correction, and I'm sorry for our oversight in normalizing the files! This issue has now been fixed.

CaesarAndylaw commented 1 month ago

The issue is fixed, and no additional concern is raised. The issue is closed.