Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if set(tagset).intersection(self._point_tags):
if 'point' in tagset:
tagset.remove('point')
inferred_point_classes, leftover_points = \
self.most_likely_tagsets(tagset)
triples.append((self._BLDG[point_entity_id], A,
BRICK[inferred_point_classes[0]]))
infer_results.append(
(identifier, list(tagset), inferred_point_classes)
)
if len(inferred_equip_classes) > 0 and \
inferred_equip_classes[0] != 'Equipment':
triples.append((self._BLDG[equip_entity_id], A,
BRICK[inferred_equip_classes[0]]))
triples.append((self._BLDG[equip_entity_id], BRICK.hasPoint,
self._BLDG[point_entity_id]))
infer_results.append(
(identifier, list(tagset), inferred_equip_classes)
)
return triples, infer_results