def is_collection_aligned(self, data_collection):
if self._collection_type != data_collection._collection_type:<EOL><INDENT>return False<EOL><DEDENT>elif len(self.values) != len(data_collection.values):<EOL><INDENT>return False<EOL><DEDENT>elif self.header.analysis_period != data_collection.header.analysis_period:<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Check if this Data Collection is aligned with another.

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

        Args:
            data_collection: The Data Collection which you want to test if this
                collection is aligned with.

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