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
When the position is NaN (e.g. fresh install) the code fails by raising an exception in __init__ and thus does not get to even creating the state file that could then be edited:
Relevant lines of stack trace:
File "C:\Users\john\miniconda3\lib\site-packages\yaqd_pmc\_pmc.py", line 36, in __init__
self.reset_to_known_position(self._state["position"])
File "C:\Users\john\miniconda3\lib\site-packages\yaqd_pmc\_pmc.py", line 106, in mm_to_steps
return round((self._state["hw_limits"][1] - mm) * self.counts_per_mm)
SystemExit: cannot convert float NaN to integer
One solution is to say "I don't care about the NaN case, lets just make the default 0, then it can't get into this in the first place"
Another is to try/except or otherwise avert this exception.
This was likely introduced after these daemons were first implemented on the table, but just now the state files were found to be corrupted (all null bytes) and had to be deleted and treated (from a state file perspective) as a brand new install.
I've worked around this on the lab machine for the time being, but this should be fixed moving forward
The text was updated successfully, but these errors were encountered:
@ksunden
The text was updated successfully, but these errors were encountered: