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
# Ignore pydicom warnings, such as "The value length (68) exceeds the maximum length of 64 allowed for VR LO" and "Invalid value for VR UI: [..]"
30
-
ifnotDEBUG:
31
-
config.INVALID_KEY_BEHAVIOR='IGNORE'
32
-
config.IGNORE=1
29
+
config.INVALID_KEY_BEHAVIOR='IGNORE'# Ignores warnings such as "UserWarning: Invalid value 'filepath' used with the 'in' operator: must be an element tag as a 2-tuple or int, or an element"
30
+
config.IGNORE=0ifDEBUGelse1# Ignores warnings such as "The value length (68) exceeds the maximum length of 64 allowed for VR LO" and "Invalid value for VR UI: [..]"
Copy file name to clipboardExpand all lines: bidscoin/utilities/__init__.py
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,8 @@
12
12
fromimportlib.utilimportfind_spec
13
13
frombidscoinimportis_hidden, lsdirs, DEBUG
14
14
15
-
# Ignore pydicom warnings, such as "The value length (68) exceeds the maximum length of 64 allowed for VR LO" and "Invalid value for VR UI: [..]"
16
-
ifnotDEBUG:
17
-
config.INVALID_KEY_BEHAVIOR='IGNORE'
18
-
config.IGNORE=1
15
+
config.INVALID_KEY_BEHAVIOR='IGNORE'# Ignores warnings such as "UserWarning: Invalid value 'filepath' used with the 'in' operator: must be an element tag as a 2-tuple or int, or an element"
16
+
config.IGNORE=0ifDEBUGelse1# Ignores warnings such as "The value length (68) exceeds the maximum length of 64 allowed for VR LO" and "Invalid value for VR UI: [..]"
0 commit comments