argiope/mesh.py
def check_elements(self):
    """
    Checks element definitions.
    """
    # ELEMENT TYPE CHECKING
    existing_types = set(self.elements.type.argiope.values.flatten())
    allowed_types = set(ELEMENTS.keys())
    if (existing_types <= allowed_types) == False:
      raise ValueError("Element types {0} not in know elements {1}".format(
                       existing_types - allowed_types, allowed_types))
    print("<Elements: OK>")
def check_elements(self):
    """
    Checks element definitions.
    """
    # ELEMENT TYPE CHECKING
    existing_types = set(self.elements.type.argiope.values.flatten())
    allowed_types = set(ELEMENTS.keys())
    if (existing_types <= allowed_types) == False:
      raise ValueError("Element types {0} not in know elements {1}".format(
                       existing_types - allowed_types, allowed_types))
    print("<Elements: OK>")
Checks element definitions.