changeset 7078:db0d6743ee4e

fix CheckValueRepresentations.py
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 12 Aug 2026 13:21:02 +0200
parents 66f7a5185a4c
children 35d418dd88e8 9119f3ee5a6c
files OrthancFramework/Resources/CheckValueRepresentations.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Resources/CheckValueRepresentations.py	Wed Aug 12 12:37:09 2026 +0200
+++ b/OrthancFramework/Resources/CheckValueRepresentations.py	Wed Aug 12 13:21:02 2026 +0200
@@ -188,7 +188,12 @@
 
     func = re.search(r'ApplyVisitorToLeaf.*?boost::bad_lexical_cast', content, re.DOTALL).group(0)
     for vr in vrs:
-        if not ('case EVR_%s' % vr) in func and not ('== EVR_%s' % vr) in func:
+        if vr == 'OB':
+            ok = 'IsBinaryTag(' in func
+        else:
+            ok = ('case EVR_%s' % vr) in func or ('== EVR_%s' % vr) in func
+
+        if not ok:
             print('  - Value representation not handled:', vr)