From 63ae0d7df4505c4bcc5b0d3a88b8bde6ca49a38f Mon Sep 17 00:00:00 2001 From: Timofey Titovets Date: Thu, 30 Oct 2025 21:05:20 +0100 Subject: [PATCH] analyzers: label undefined derivatives Signed-off-by: Timofey Titovets --- scripts/motan/analyzers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/motan/analyzers.py b/scripts/motan/analyzers.py index 2796362fe..91678012f 100644 --- a/scripts/motan/analyzers.py +++ b/scripts/motan/analyzers.py @@ -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())