[go: nahoru, domu]

Skip to content

Commit

Permalink
Skip performing padding on non-terminal windows.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 473371856
  • Loading branch information
danielecook authored and Copybara-Service committed Sep 9, 2022
1 parent 41a990d commit dcd2080
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deepconsensus/preprocess/pre_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ def ccs_slice(self, start, end) -> 'Read':
truth_range=self.truth_range)

def pad(self, pad_width):
# Skip padding when not necessary.
if len(self) == pad_width:
return self
return Read(
name=self.name,
bases=right_pad(self.bases, pad_width, dc_constants.GAP),
Expand Down

0 comments on commit dcd2080

Please sign in to comment.