@@ -93,18 +93,18 @@ We use several tools to maintain code quality:
9393
9494Example docstring:
9595``` python
96- def validate_hed_string (hed_string , schema ):
96+ def validate_hed_string (hed_string , schema )->list[ dict ] :
9797 """ Validate a HED string against a schema.
9898
99- Args :
99+ Parameters :
100100 hed_string (str): The HED string to validate.
101101 schema (HedSchema): The schema to validate against.
102102
103103 Returns:
104104 list: A list of validation issues, empty if valid.
105105
106106 Example:
107- >>> schema = load_schema( )
107+ >>> schema = load_schema_version('8.4.0' )
108108 >>> issues = validate_hed_string("Event", schema)
109109 >>> if not issues:
110110 ... print("Valid!")
@@ -135,16 +135,16 @@ from hed import HedString, load_schema
135135class TestHedValidation (unittest .TestCase ):
136136 @ classmethod
137137 def setUpClass (cls ):
138- cls .schema = load_schema( )
138+ cls .schema = load_schema_version( ' 8.4.0 ' )
139139
140140 def test_valid_hed_string (self ):
141141 hed_string = HedString(" Event" , self .schema)
142- issues = hed_string.validate(self .schema )
142+ issues = hed_string.validate()
143143 self .assertEqual(len (issues), 0 )
144144
145145 def test_invalid_hed_string (self ):
146146 hed_string = HedString(" InvalidTag" , self .schema)
147- issues = hed_string.validate(self .schema )
147+ issues = hed_string.validate()
148148 self .assertGreater(len (issues), 0 )
149149
150150if __name__ == ' __main__' :
0 commit comments