changeset 6990:eeb1737c4fac

fix CheckValueRepresentations.py
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 04 Jul 2026 13:30:22 +0200
parents 0c3a7e19a740
children 8274f812ed78
files OrthancFramework/Resources/CheckValueRepresentations.py OrthancFramework/Sources/Enumerations.h
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Resources/CheckValueRepresentations.py	Sat Jul 04 10:55:02 2026 +0200
+++ b/OrthancFramework/Resources/CheckValueRepresentations.py	Sat Jul 04 13:30:22 2026 +0200
@@ -188,7 +188,7 @@
 
     func = re.search(r'ApplyVisitorToLeaf.*?boost::bad_lexical_cast', content, re.DOTALL).group(0)
     for vr in vrs:
-        if not ('case EVR_%s' % vr) and not ('== EVR_%s' % vr) in func:
+        if not ('case EVR_%s' % vr) in func and not ('== EVR_%s' % vr) in func:
             print('  - Value representation not handled:', vr)
 
 
--- a/OrthancFramework/Sources/Enumerations.h	Sat Jul 04 10:55:02 2026 +0200
+++ b/OrthancFramework/Sources/Enumerations.h	Sat Jul 04 13:30:22 2026 +0200
@@ -576,8 +576,7 @@
   };
 
   /**
-   * The value representations Orthanc knows about. They correspond to
-   * the DICOM 2016b version of the standard.
+   * The value representations Orthanc knows about.
    * http://dicom.nema.org/medical/dicom/current/output/chtml/part05/sect_6.2.html
    **/
   enum ValueRepresentation