batch_convert

Function batch_convert 

Source
pub fn batch_convert(
    inputs: Vec<BatchInput>,
    format: ConversionFormat,
) -> (Vec<BatchOutput>, BatchStats)
Expand description

Batch convert multiple photometric files.

This function is significantly faster than converting files one-by-one in Python because the conversion happens entirely in Rust.

Args: inputs: List of BatchInput objects containing file names and contents format: Target conversion format (Ldt or Ies)

Returns: Tuple of (list of BatchOutput, BatchStats)

Example: >>> inputs = [ … BatchInput(“file1.ldt”, ldt_content1), … BatchInput(“file2.ldt”, ldt_content2), … ] >>> outputs, stats = batch_convert(inputs, ConversionFormat.Ies) >>> print(f“Converted {stats.successful}/{stats.total} files“)