def finalized_canonical_averages_dtype(spanning_cluster=True):
fields = list()<EOL>fields.extend([<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT:p>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>])<EOL>if spanning_cluster:<EOL><INDENT>fields.extend([<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>])<EOL><DEDENT>fields.extend([<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>])<EOL>return _ndarray_dtype(fields)<EOL>
The NumPy Structured Array type for finalized canonical averages over
several runs

Helper function

Parameters
----------
spanning_cluster : bool, optional
    Whether to detect a spanning cluster or not.
    Defaults to ``True``.

Returns
-------
ret : list of pairs of str
    A list of tuples of field names and data types to be used as ``dtype``
    argument in numpy ndarray constructors

See Also
--------
http://docs.scipy.org/doc/numpy/user/basics.rec.html
canonical_averages_dtype