tetration 0.1.9

Chunked tensor .tet format, tet CLI, and optional C ABI (tetration-ffi)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! `tet export` (`.tet` → Zarr v3 directory).

use std::path::Path;

use tetration::export::export_tet_to_zarr_with_progress;

use super::util::cli_error;

pub(crate) fn run_export(input: &Path, output: &Path) -> Result<(), String> {
    let report =
        export_tet_to_zarr_with_progress(input, output, None::<fn(_)>).map_err(cli_error)?;
    eprintln!(
        "exported {} dataset(s), {} chunk(s) → {} ({:.2}s)",
        report.dataset_count, report.chunks_written, report.output, report.elapsed_secs
    );
    Ok(())
}