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
{{ message }}
Repository navigation
Commit 6dc9f14
Browse filesBrowse the repository at this point in the historyBrowse files
f"[!] {key} is not in list of legal keys. This name '{name}' is invalid. Legal keys are: {list(entities_keys.keys())}. \nFor use see https://bids-specification.readthedocs.io/en/stable/99-appendices/09-entities.html"
72
+
log.on_fail(
73
+
f"{key} is not in list of legal keys. This name '{name}' is invalid. Legal keys are: {list(entities_keys.keys())}. \nFor use see https://bids-specification.readthedocs.io/en/stable/99-appendices/09-entities.html"
72
74
)
73
75
entities_keys[key] =key
74
76
returnFalse
75
77
ifkeyinentity_alphanumericandnotvalue.isalnum():
76
-
print(f"[!] value for {key} must be alphanumeric. This name '{name}' is invalid, with value {value}")
78
+
log.on_fail(f"value for {key} must be alphanumeric. This name '{name}' is invalid, with value {value}")
77
79
returnFalse
78
80
ifkeyinentity_decimalandnotvalue.isdecimal():
79
-
print(f"[!] value for {key} must be decimal. This name '{name}' is invalid, with value {value}")
81
+
log.on_fail(f"value for {key} must be decimal. This name '{name}' is invalid, with value {value}")
80
82
returnFalse
81
83
# if int(value) == 0:
82
-
# print(f"[!] value for {key} must be not 0. This name '{name}' is invalid, with value {value}")
84
+
# log.on_fail(f"value for {key} must be not 0. This name '{name}' is invalid, with value {value}")
83
85
ifkeyinentity_formatandvaluenotinformats_relaxed:
84
-
print(f"[!] value for {key} must be a format. This name '{name}' is invalid, with value {value}")
86
+
log.on_fail(f"value for {key} must be a format. This name '{name}' is invalid, with value {value}")
85
87
returnFalse
86
88
ifkeyinentity_on_offandvaluenotin ["on", "off"]:
87
-
print(f"[!] value for {key} must be in {['on', 'off']}. This name '{name}' is invalid, with value {value}")
89
+
log.on_fail(f"value for {key} must be in {['on', 'off']}. This name '{name}' is invalid, with value {value}")
88
90
returnFalse
89
91
ifkeyinentity_left_rightandvaluenotin ["L", "R"]:
90
-
print(f"[!] value for {key} must be in {['L', 'R']}. This name '{name}' is invalid, with value {value}")
92
+
log.on_fail(f"value for {key} must be in {['L', 'R']}. This name '{name}' is invalid, with value {value}")
f"[!] {key} is not in list of legal keys. This name '{key}' is invalid. Legal keys are: {list(entities_keys.keys())}. \nFor use see https://bids-specification.readthedocs.io/en/stable/99-appendices/09-entities.html"
1090
+
ifkeynotinentities_keys:
1091
+
logger.on_fail(
1092
+
f"{key} is not in list of legal keys. This name '{key}' is invalid. Legal keys are: {list(entities_keys.keys())}. \nFor use see https://bids-specification.readthedocs.io/en/stable/99-appendices/09-entities.html"
1099
1093
)
1100
-
ifkeynotinentities_keys
1101
-
elseNone
1102
-
)
1103
1094
else:
1104
1095
assertkeyinentities_keys, (
1105
1096
f"[!] {key} is not in list of legal keys. This name '{key}' is invalid. Legal keys are: {list(entities_keys.keys())}. \nFor use see https://bids-specification.readthedocs.io/en/stable/99-appendices/09-entities.html"
0 commit comments