Skip to content

Commit

Permalink
Clear line
Browse files Browse the repository at this point in the history
  • Loading branch information
timoast committed Oct 1, 2024
1 parent 17ae9df commit 4be4465
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ pub fn compute_stats(input_file: &str, output_prefix: &str) -> Result<(), Box<dy
*col_nonzero_counts.entry(col_idx).or_insert(0) += 1;
}

// Clear the progress line after processing is complete
println!("");

// Finalize stats for all rows
for row_idx in 1..=n_rows {
let nonzero_count = row_nonzero_counts.get(&row_idx).cloned().unwrap_or(0);
Expand Down
3 changes: 3 additions & 0 deletions src/subset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ fn subset_mtx_file(

temp_writer.flush()?;

// Clear the progress line after processing is complete
println!("");

// Now write the header to the output file
let mut output_writer = io_utils::get_writer(output_file)?;

Expand Down

0 comments on commit 4be4465

Please sign in to comment.