We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 59a0e9f + 9b4110a commit dac5220Copy full SHA for dac5220
1 file changed
hed/schema/schema_compliance.py
@@ -126,10 +126,13 @@ def check_invalid_chars(self):
126
issues_list += validate_schema_description(tag_name, desc)
127
128
if schema_version_greater_equal(self.hed_schema, "8.3.0"):
129
- for unit in self.hed_schema.units:
130
- for i, char in enumerate(unit):
+ for unit_name, unit in self.hed_schema.units.items():
+ # Don't check for spaces on deprecated units, to avoid degree Celsius issue
131
+ if unit.has_attribute(HedKey.DeprecatedFrom):
132
+ continue
133
+ for i, char in enumerate(unit_name):
134
if char == " ":
135
issues_list += ErrorHandler.format_error(SchemaWarnings.SCHEMA_INVALID_CHARACTERS_IN_TAG,
- unit, char_index=i, problem_char=char)
136
+ unit_name, char_index=i, problem_char=char)
137
138
return issues_list
0 commit comments