Struct birli::cli::BirliContext
source · pub struct BirliContext<'a> {
pub corr_ctx: CorrelatorContext,
pub prep_ctx: PreprocessContext<'a>,
pub vis_sel: VisSelection,
pub flag_ctx: FlagContext,
pub io_ctx: IOContext,
pub avg_time: usize,
pub avg_freq: usize,
pub num_timesteps_per_chunk: Option<usize>,
pub channel_range_sel: ChannelRanges,
}
Expand description
Args for preprocessing a correlator context.
Fields§
§corr_ctx: CorrelatorContext
mwalib::CorrelatorContext
prep_ctx: PreprocessContext<'a>
Preprocessing parameters
vis_sel: VisSelection
selected visibility indices
flag_ctx: FlagContext
Flagging Parameters
io_ctx: IOContext
Input / output paths
avg_time: usize
temporal averaging factor
avg_freq: usize
spectral averaging factor
num_timesteps_per_chunk: Option<usize>
temporal chunking factor
channel_range_sel: ChannelRanges
channel selections for picket-fencing
Implementations§
source§impl<'a> BirliContext<'a>
impl<'a> BirliContext<'a>
sourcepub fn from_args<I, T>(args: I) -> Result<Self, BirliError>where
I: IntoIterator<Item = T> + Debug,
T: Into<OsString> + Clone,
pub fn from_args<I, T>(args: I) -> Result<Self, BirliError>where I: IntoIterator<Item = T> + Debug, T: Into<OsString> + Clone,
Parse an iterator of arguments, args
into a BirliContext
.
Errors
Can raise:
clap::Error
if clap cannot parseargs
mwalib::MwalibError
if mwalib can’t open the input files.BirliError::CLIError
if the arguments are invalid.
sourcepub fn run_ranges(self) -> Result<(), BirliError>
pub fn run_ranges(self) -> Result<(), BirliError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for BirliContext<'a>
impl<'a> Send for BirliContext<'a>
impl<'a> Sync for BirliContext<'a>
impl<'a> Unpin for BirliContext<'a>
impl<'a> UnwindSafe for BirliContext<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more