bandhic.band_hic_matrix.__bool__#

band_hic_matrix.__bool__()[source]#

Truth value of the band_hic_matrix, following NumPy semantics.

Returns:

If the matrix has exactly one element (shape (1,1)), returns its truth value; otherwise raises a ValueError.

Return type:

bool

Raises:

ValueError – If the matrix contains more than one element.