pub fn read_multiple_fits_files(
file_paths: Vec<PathBuf>,
experiment_type: ExperimentType,
) -> Result<DataFrame, FitsLoaderError>
Expand description
Reads multiple FITS files and combines them into a single DataFrame.
§Arguments
file_paths
- Collection of paths to FITS filesexperiment_type
- Type of experiment (e.g.,ExperimentType::Xrr
)
§Returns
A Result
containing either the combined DataFrame or a FitsLoaderError
.
§Example
use pyref_core::{read_multiple_fits_files, ExperimentType};
use std::path::PathBuf;
let paths = vec![
PathBuf::from("path/to/file1.fits"),
PathBuf::from("path/to/file2.fits"),
];
let df = read_multiple_fits_files(paths, ExperimentType::Xrr);