You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "c:\Users\Principal\Documents\Teste-Forno\.venv\main.py", line 24, in <module>
inst.setpoint = 31.0
^^^^^^^^^^^^^
File "C:\Users\Principal\Documents\Teste-Forno\.venv\Lib\site-packages\instruments\hcp\tc038d.py", line 141, in setpoint
value = int(round(value.to("degC").magnitude * 10, 0))
^^^^^^^^
AttributeError: 'float' object has no attribute 'to'
Activity
scasagrande commentedon Jan 16, 2026
can you please post the entire traceback
serrapha commentedon Jan 16, 2026
Yes!
scasagrande commentedon Jan 16, 2026
ah, looks like we have a typo
this line should have
value.toreplaced withnumber.tohttps://github.com/instrumentkit/InstrumentKit/blob/main/src/instruments/hcp/tc038d.py#L141scasagrande commentedon Jan 16, 2026
or maybe it needs a little more than that? I'll try to fix that
serrapha commentedon Jan 16, 2026
I'm trying to change it in my own codebase. Will return as soon as I have results.
serrapha commentedon Jan 16, 2026
The change from "value.to" to "number.to" still gives the same error here.
scasagrande commentedon Jan 16, 2026
can you try the change in #469