-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make scrutinizer happy with newer pep8 version
- Loading branch information
1 parent
e2d28d8
commit c85566a
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c85566a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def fill_hdf5_file(h5file, data):
split_names = list(set([split_tuple[0] for split_tuple in data]))
for split_name in split_names:
lengths = [len(split_tuple[2]) for split_tuple in data if split_tuple[0] == split_name]
if not all(le == lengths[0] for le in lengths):
raise ValueError("split '{}' has sources that ".format(split_name) + "vary in length")