pub struct ExperimentLoader {
pub dir: String,
pub ccd_files: Vec<FitsLoader>,
pub experiment_type: ExperimentType,
}Fields§
§dir: String§ccd_files: Vec<FitsLoader>§experiment_type: ExperimentTypeImplementations§
Source§impl ExperimentLoader
FitsLoader struct for loading and accessing FITS file data.
impl ExperimentLoader
FitsLoader struct for loading and accessing FITS file data.
The FitsLoader struct provides methods for loading and accessing data from a FITS file.
It supports retrieving individual card values, all card values, image data, and converting
the data to a Polars DataFrame.
§Example
extern crate pyref_core;
use pyref_core::loader::{ExperimentLoader, ExperimentType};
let exp = ExperimentType::from_str(exp_type)?;
let fits_loader = ExperimentLoader::new("/path/to/file.fits", exp).unwrap();
// Mostly this is used to convert the data to a Polars DataFrame
let df = fits_loader.to_polars()?;Auto Trait Implementations§
impl Freeze for ExperimentLoader
impl !RefUnwindSafe for ExperimentLoader
impl Send for ExperimentLoader
impl Sync for ExperimentLoader
impl Unpin for ExperimentLoader
impl !UnwindSafe for ExperimentLoader
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more