# Path: pive/visualization/defaults.py



import json
import os
from glob import glob
from collections import OrderedDict
from .visualization import defaults as default

    props.append(lexicographic)
    return props


def types_matching_data_requirements(given_types, required_types):
    """Verifies if all given types match the requirements.
    Requirements may vary and support multiple options."""
    matches = True
    i = 0

    for item in given_types:
        #print ("item: %r     req: %r" % (item, required_types[i]))

        if item not in required_types[i]:
            matches = False
        i += 1
    return matches


def is_multiple_data_consistent(given_types, singleDataLength):
    """Verifies if the multiple data elements following
    the last single data element are consistent."""
    consistent = True
    last_index = singleDataLength - 1
    last_element = given_types[last_index]

    for item in given_types[last_index:]:
        if item != last_element:
            consistent = False

# Path: pive/visualization/defaults.py



# Path: pive/visualizationmapper.py
import json
import os
from glob import glob
from collections import OrderedDict
from .visualization import defaults as default


    props.append(lexicographic)
    return props


def types_matching_data_requirements(given_types, required_types):
    """Verifies if all given types match the requirements.
    Requirements may vary and support multiple options."""
    matches = True
    i = 0

    for item in given_types:
        #print ("item: %r     req: %r" % (item, required_types[i]))

        if item not in required_types[i]:
            matches = False
        i += 1
    return matches


def is_multiple_data_consistent(given_types, singleDataLength):
    """Verifies if the multiple data elements following
    the last single data element are consistent."""
    consistent = True
    last_index = singleDataLength - 1
    last_element = given_types[last_index]

    for item in given_types[last_index:]:
        if item != last_element:
            consistent = False

    return consistent