mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-01-22 13:17:19 -07:00
analyzers: label undefined derivatives
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
This commit is contained in:
parent
90b7f8230d
commit
63ae0d7df4
1 changed files with 2 additions and 1 deletions
|
|
@ -33,7 +33,8 @@ class GenDerivative:
|
|||
elif '(mm/s)' in units:
|
||||
rep = [('Velocity', 'Acceleration'), ('(mm/s)', '(mm/s^2)')]
|
||||
else:
|
||||
return {'label': 'Derivative', 'units': 'Unknown'}
|
||||
return {'label': 'Derivative of %s' % (label['label']),
|
||||
'units': 'Unknown'}
|
||||
for old, new in rep:
|
||||
lname = lname.replace(old, new).replace(old.lower(), new.lower())
|
||||
units = units.replace(old, new).replace(old.lower(), new.lower())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue