'Get the dictionary given name and ndarray pairs.'

@staticmethod
def _get_dict(names, ndarrays):

    nset = set()
    for nm in names:
        if (nm in nset):
            raise ValueError(('Duplicate    names    detected,    %s' % str(names)))
        nset.add(nm)
    return dict(zip(names, ndarrays))
