Skip to content

Commit d36ecb7

Browse files
VahagnTKAVaghinakDev
authored andcommitted
removing unnecessary tag lines which I thought were necessary
1 parent cb93720 commit d36ecb7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/superannotate/lib/app/analytics/aggregators.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,17 @@ def aggregate_annotations_as_df(self):
173173
return self.aggregate_document_annotations_as_df(annotation_paths)
174174

175175
def __add_attributes_to_raws(self, raws, attributes, element_raw):
176+
if element_raw.type == 'tag':
177+
print(attributes)
176178
for attribute_id, attribute in enumerate(attributes):
177179
attribute_raw = copy.copy(element_raw)
178180
attribute_raw.attributeId = attribute_id
179181
attribute_raw.attributeGroupName = attribute.get("groupName")
180182
attribute_raw.attributeName = attribute.get("name")
181183
raws.append(attribute_raw)
182184
if not attributes:
185+
if element_raw.type == 'tag':
186+
print(element_raw)
183187
raws.append(element_raw)
184188

185189
return raws
@@ -257,7 +261,7 @@ def aggregate_video_annotations_as_df(self, annotation_paths: List[str]):
257261
)
258262
if not timestamps:
259263
raws.append(parameter_raw)
260-
if not parameters:
264+
if not parameters and instance_type != 'tag':
261265
raws.append(instance_raw)
262266
if not instances:
263267
raws.append(raw_data)

0 commit comments

Comments
 (0)