DuplicateChecker

class DuplicateChecker[source]

Methods

DuplicateChecker.__init__()

Checker for duplications in HED groups.

DuplicateChecker.check_for_duplicates(group)

Find duplicates in a HED group and return the errors found.

DuplicateChecker.get_hash(group)

Return the unique hash for the group as long as no duplicates.

Attributes

DuplicateChecker.__init__()[source]

Checker for duplications in HED groups.

Notes

This checker has an early out strategy – it returns when it finds an error.

DuplicateChecker.check_for_duplicates(group)[source]

Find duplicates in a HED group and return the errors found.

Parameters:

group (HedGroup) – The HED group to be checked.

Returns:

List of validation issues – which might be empty if no duplicates detected.

Return type:

list

DuplicateChecker.get_hash(group)[source]

Return the unique hash for the group as long as no duplicates.

Parameters:

group (HedGroup) – The HED group to be checked.

Returns:

Unique hash or None if duplicates were detected within the group.

Return type:

int or None