@staticmethod<EOL><INDENT>def are_collections_aligned(data_collections, raise_exception=True):<DEDENT>
if len(data_collections) > <NUM_LIT:1>:<EOL><INDENT>first_coll = data_collections[<NUM_LIT:0>]<EOL>for coll in data_collections[<NUM_LIT:1>:]:<EOL><INDENT>if not first_coll.is_collection_aligned(coll):<EOL><INDENT>if raise_exception is True:<EOL><INDENT>error_msg = '<STR_LIT>''<STR_LIT>'.format(<EOL>first_coll.header.data_type, coll.header.data_type)<EOL>raise ValueError(error_msg)<EOL><DEDENT>return False<EOL><DEDENT><DEDENT><DEDENT>return True<EOL>
Test if a series of Data Collections are aligned with one another.

        Aligned Data Collections are of the same Data Collection class, have the
        same number of values and have matching datetimes.

        Args:
            data_collections: A list of Data Collections for which you want to
                test if they are al aligned with one another.

        Return:
            True if collections are aligned, False if not aligned