Skip to content

Commit ea45704

Browse files
committed
Addressed the copilot suggestions
1 parent d67c9b2 commit ea45704

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

hed/schema/schema_io/df_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
struct_columns = [hed_id, name, attributes, subclass_of, dcdescription]
8787
tag_columns = [hed_id, name, level, subclass_of, attributes, dcdescription]
8888
unit_columns = [hed_id, name, subclass_of, has_unit_class, attributes, dcdescription]
89-
attribute_columns = [hed_id, name, type, properties, dcdescription] # For the annotation property
89+
attribute_columns = [hed_id, name, type, properties, dcdescription] # For AnnotationProperty, DataProperty, and ObjectProperty
9090
property_columns = [hed_id, name, type, dcdescription]
9191
prefix_columns = [prefix, namespace, description]
9292
external_annotation_columns = [prefix, id, iri, description]

hed/schema/schema_io/schema2df.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -202,18 +202,6 @@ def _write_attribute_entry(self, entry, include_props):
202202
df_key = constants.DATA_KEY
203203
property_type = "DataProperty"
204204

205-
{
206-
"HedTag": self._get_object_id("HedTag", include_prefix=True),
207-
"HedUnit": self._get_object_id("HedUnit", include_prefix=True),
208-
"HedUnitClass": self._get_object_id("HedUnitClass", include_prefix=True),
209-
"HedUnitModifier": self._get_object_id("HedUnitModifier", include_prefix=True),
210-
"HedValueClass": self._get_object_id("HedValueClass", include_prefix=True),
211-
"HedElement": self._get_object_id("HedElement", include_prefix=True),
212-
"string": "xsd:string",
213-
"boolean": "xsd:boolean",
214-
"float": "xsd:float",
215-
}
216-
217205
tag_id = entry.attributes.get(HedKey.HedID, "")
218206
new_row = {
219207
constants.hed_id: f"{tag_id}",

0 commit comments

Comments
 (0)