Skip to content

Commit

Permalink
fix: reassign rather than redefine band_area in attempt loop to allow…
Browse files Browse the repository at this point in the history
… reporting after the loop
  • Loading branch information
rneher committed Sep 7, 2023
1 parent bd07478 commit 867a0e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages_rs/nextclade/src/align/align.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub fn align_nuc(
let max_band_area = params.max_band_area;
let mut attempt = 0;

let (stripes, band_area) = create_alignment_band(
let (mut stripes, mut band_area) = create_alignment_band(
&seed_matches,
qry_len as isize,
ref_len as isize,
Expand All @@ -89,7 +89,7 @@ pub fn align_nuc(
minimal_bandwidth = max(2 * minimal_bandwidth, 1);
attempt += 1;
// make new band
let (stripes, band_area) = create_alignment_band(
(stripes, band_area) = create_alignment_band(
&seed_matches,
qry_len as isize,
ref_len as isize,
Expand Down

0 comments on commit 867a0e6

Please sign in to comment.