pytec regression get_pwm() #31

Closed
opened 2020-12-20 02:45:03 +08:00 by jbqubit · 4 comments
Contributor
tec = Client(host="192.168.1.52")
tec.get_pwm()
/home/britton/miniconda3/envs/thermostat37/bin/python3.7 /home/britton/gitlab/brittonlab/artiq-lab/thermostat/mytest.py
Traceback (most recent call last):
  File "/home/britton/gitlab/brittonlab/artiq-lab/thermostat/mytest.py", line 78, in <module>
    tec.get_pwm()
  File "/home/britton/miniconda3/envs/thermostat37/lib/python3.7/site-packages/pytec-0.0-py3.7.egg/pytec/client.py", line 58, in get_pwm
  File "/home/britton/miniconda3/envs/thermostat37/lib/python3.7/site-packages/pytec-0.0-py3.7.egg/pytec/client.py", line 37, in _get_conf
TypeError: string indices must be integers
``` tec = Client(host="192.168.1.52") tec.get_pwm() ``` ``` /home/britton/miniconda3/envs/thermostat37/bin/python3.7 /home/britton/gitlab/brittonlab/artiq-lab/thermostat/mytest.py Traceback (most recent call last): File "/home/britton/gitlab/brittonlab/artiq-lab/thermostat/mytest.py", line 78, in <module> tec.get_pwm() File "/home/britton/miniconda3/envs/thermostat37/lib/python3.7/site-packages/pytec-0.0-py3.7.egg/pytec/client.py", line 58, in get_pwm File "/home/britton/miniconda3/envs/thermostat37/lib/python3.7/site-packages/pytec-0.0-py3.7.egg/pytec/client.py", line 37, in _get_conf TypeError: string indices must be integers ```

Do you run the latest firmware?

The response to pwm is now a one-line JSON array instead of two lines as before.

Do you run the latest firmware? The response to `pwm` is now a one-line JSON array instead of two lines as before.
Author
Contributor

I was using latest firmware... I built it.

I'm not my test bench at the moment. Did you update pytec to ingest the new JSON?

I was using latest firmware... I built it. I'm not my test bench at the moment. Did you update pytec to ingest the new JSON?

Yes, pytec has been updated.

Yes, pytec has been updated.
Owner

So I guess we can close this. @jbqubit please reopen if this is still relevant.

So I guess we can close this. @jbqubit please reopen if this is still relevant.
sb10q closed this issue 2020-12-28 17:49:12 +08:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/thermostat#31
No description provided.