(self, sdo, new=False)
return true or false depending on whether the SDO has sub-techniques. new determines whether to parse from the new or old data
return true or false depending on whether the SDO has sub-techniques. new determines whether to parse from the new or old data
return true or false depending on whether the SDO has sub - techniques . new determines whether to parse from the new or old data
def has_subtechniques(self, sdo, new=False):
        """return true or false depending on whether the SDO has sub-techniques. new determines whether to parse from the new or old data"""
        if new: return len(list(filter(lambda rel: rel["target_ref"] == sdo["id"], self.new_subtechnique_of_rels))) > 0
        else:   return len(list(filter(lambda rel: rel["target_ref"] == sdo["id"], self.old_subtechnique_of_rels))) > 0
def has_subtechniques ( self , sdo , new = False ) : if new : return len ( list ( filter ( lambda rel : rel [ "target_ref" ] == sdo [ "id" ] , self . new_subtechnique_of_rels ) ) ) > 0 else : return len ( list ( filter ( lambda rel : rel [ "target_ref" ] == sdo [ "id" ] , self . old_subtechnique_of_rels ) ) ) > 0