Skip to content

Commit 1d99f7e

Browse files
committed
black
1 parent a00d0ec commit 1d99f7e

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

returnn/datasets/hdf.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -671,12 +671,8 @@ def check_data_integrity(self, data, seq_name):
671671
:param str seq_name
672672
"""
673673

674-
assert (
675-
len(data.shape) == 2
676-
), f"shape length mismatch in {seq_name}: {data.shape} (should be 2-dimensional)"
677-
assert (
678-
data.shape[1] == 2
679-
), f"feature dim mismatch in {seq_name}: {data.shape[1]} (should be 2-dimensional)"
674+
assert len(data.shape) == 2, f"shape length mismatch in {seq_name}: {data.shape} (should be 2-dimensional)"
675+
assert data.shape[1] == 2, f"feature dim mismatch in {seq_name}: {data.shape[1]} (should be 2-dimensional)"
680676
assert self.dtype == str(
681677
data.dtype
682678
), f"dtype mismatch in {seq_name}: {str(data.dtype)} (should be {self.dtype})"

0 commit comments

Comments
 (0)