Skip to content

Commit

Permalink
optional keep tband
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Oct 19, 2023
1 parent 320be52 commit 5f74a51
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/bin/psd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ struct AcqOpts {
#[arg(short, long)]
keep_overlap: bool,

/// Don't remove bins in the filter transition band
#[arg(short, long)]
keep_transition_band: bool,

/// Integrate jitter (linear)
#[arg(short, long)]
integrate: bool,
Expand All @@ -75,7 +79,7 @@ impl AcqOpts {
MergeOpts {
remove_overlap: !self.keep_overlap,
min_count: self.avg_min,
remove_transition_band: true,
remove_transition_band: !self.keep_transition_band,
}
}
}
Expand Down Expand Up @@ -463,6 +467,9 @@ impl App {
ui.checkbox(&mut self.acq.keep_overlap, "Keep overlap")
.on_hover_text("Do not remove low-resolution bins");
ui.separator();
ui.checkbox(&mut self.acq.keep_transition_band, "Keep t-band")
.on_hover_text("Do not remove bins in the filter transition band");
ui.separator();
ui.checkbox(&mut self.acq.integrate, "Integrate")
.on_hover_text("Show integrated PSD as linear cumulative sum");
ui.separator();
Expand Down

0 comments on commit 5f74a51

Please sign in to comment.