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
Include a replacement for " Celsius" as the unit #333
Conversation
See issue instrumentkit#331, it seems like `tset?` returns ` Celsius` as the unit.
Added a separate test to check that |
.replace(" Celsius", "") | ||
.replace(" C", "") | ||
.replace(" F", "") | ||
.replace(" K", "") | ||
) | ||
return u.Quantity(float(response), u.degC) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we update this to parse the units instead of just throwing them away?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the manual, section 6.3.2:
All temperature inputs and read backs are in °C only, regardless of what the display units are for the front panel LCD of the TC200.
I assume it would never return other units than C
, but then again... didn't except Celsius
either.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😂 fair enough! haha
Just update your branch and we are good to go 💃 |
I noticed that at some point when browsing through the manual, it's strange indeed since the instrument can display other units... oh well 😄 |
See issue #331, it seems like
tset?
returnsCelsius
as the unit.