Skip to content

Commit

Permalink
Avoid crash when self.total_time_taken is None?
Browse files Browse the repository at this point in the history
  • Loading branch information
AvantiShri committed Jan 8, 2021
1 parent aeb0a20 commit e668030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modisco/tfmodisco_workflow/seqlets_to_patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,8 @@ def from_hdf5(cls, grp, track_set):

def save_hdf5(self, grp):
grp.attrs["success"] = self.success
grp.attrs["total_time_taken"] = self.total_time_taken
if (self.success):
grp.attrs["total_time_taken"] = self.total_time_taken
if (self.each_round_initcluster_motifs is not None):
self.save_each_round_initcluster_motifs(
grp=grp.create_group("each_round_initcluster_motifs"))
Expand Down

0 comments on commit e668030

Please sign in to comment.