-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in parsing config? #377
Comments
Hi Kyohei, I tried to reproduce this locally and it's working as expected... In my site-config I'm using:
and my args namespace looks like I'd expect it would:
Can you give a bit more information about where and how you are running this? |
Sorry, the description above was not accurate,
I made the daq-dev env https://github.com/simonsobs/daq-discussions/discussions/29 I guess |
Yep, the minus was confusing the site-config parser. This PR should fix the issue: #378 |
Great! thank you for your quick fix. I'll close this issue. |
A local discussion with @jlashner led to the conclusion that this might be a bug in ocs.
I found that the parser do not allow the duplicated numbers as follows, during testing hwp-gripper agent simonsobs/socs#646
default.yaml
agent.py
Some other test results
If I put 3 numbers from command line, it accepts duplicated values.
If I instead do
'--warm-grip-distance', 10.0, 10.00, 15.0
, then I getNamespace(mcu_ip='192.168.13.34', control_port=8041, warm_grip_distance=[10.0, 10.0, 15.0] ,...
If I do
nargs=3
instead ofnargs='+'
, then agent.py raise an errorocs-agent-cli: error: argument --adjustment-distance: expected 3 arguments
The text was updated successfully, but these errors were encountered: