技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
io-data【数据与研究】Load, validate, convert, and save Dipy diffusion images, gradients, tractograms, PAM files, and dataset inputs.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task starts from files or must preserve Dipy data metadata: NIfTI diffusion images, b-values/b-vectors, GradientTable objects, tractograms, StatefulTractogram objects, PAM5 peak files, fetched datasets, or IO conversion commands.
dipy.io.image.dipy.core.gradients.gradient_table, and validating DWI shape versus gradient count before fitting.StatefulTractogram, load_tractogram, and save_tractogram.dipy.io.peaks after reconstruction has produced peak arrays or PeaksAndMetrics.dipy.data or dipy_fetch.dipy_info, dipy_fetch, dipy_split, dipy_extract_b0, dipy_extract_shell, dipy_extract_volume, dipy_math, and conversion commands.../reconstruction-models/.../tracking-segmentation/.../cli-workflows/.../registration-alignment/.references/api-reference.md: signatures, return values, and API-specific gotchas.references/data-formats.md: format, shape, affine/header, gradient, tractogram, and PAM5 invariants.references/workflows.md: practical IO recipes, validation order, dataset decisions, and command routing.references/troubleshooting.md: symptom-driven diagnostics for mismatches, references, bbox checks, PAM fields, and fetch failures.scripts/dipy_io_probe.py: safe no-network import/signature/gradient/tractogram probe with temporary writes only.GradientTable, tractogram/SFT, PAM5, dataset fetcher, or IO CLI command.data.shape[-1] must match len(bvals) and bvecs.shape[0].Space and Origin explicit, and keep bbox validation enabled unless deliberately repairing invalid streamlines.dipy_fetch list and FetchFlow.get_fetcher_datanames() as safe discovery, but treat actual fetches as networked/cache-mutating operations requiring user intent.Run the bundled helper from any project or temporary directory:
python scripts/dipy_io_probe.py --check-imports --check-signatures --tiny-gradient
python scripts/dipy_io_probe.py --tiny-tractogram --work-dir dipy-io-probe-output
The probe imports Dipy IO APIs, reports signatures, validates a tiny seven-volume gradient table, and can round-trip a one-streamline TRK file. It does not download datasets, run model fitting, or write outside its temporary directory unless --work-dir is provided.