Skip to content

Releases

v2.9.4

Choose a tag to compare

@srikash srikash released this 09 Nov 04:16

Choose the number of parallel workers. Output is unchanged.

  • --jobs N (-j N) sets how many workers read headers, sanitise, check copies and compress (pigz -p N). Without it the count is automatic, as before. --jobs 1 runs without parallelism. The memory limit still applies, so a very large N may start fewer workers.

v2.9.3

Choose a tag to compare

@srikash srikash released this 08 Nov 00:36

Version flag. Output is unchanged.

  • -v / --version prints the version. -h / --help now opens with the version line, ahead of Usage:.

v2.9.2

Choose a tag to compare

@srikash srikash released this 06 Nov 23:43

Less disk reading when archiving. Archives and their contents are unchanged.

  • An archive's SHA-256 is now taken from the compressed bytes as they are written, instead of reading the finished archive back to hash it. That saves one full read of every archive (about 1.7 GB each on 489 real files), which matters most on slow or network storage; on a local disk the read was mostly served from memory, so the run time is about the same. A failure writing the archive, such as a full disk, is reported as an archive error with either compressor (pigz or Python's own); errors reading a source file are not relabelled. With pigz, a full disk stops pigz at once, so the run fails straight away. verify_archive still checks an archive against its checksum later.

v2.9.1

Choose a tag to compare

@srikash srikash released this 06 Nov 23:12

Less disk reading in a plain run. Output is unchanged.

  • Without --sanitise, each copy is no longer read back right after it is made, because finalise already compares every copy with its source digest before archiving. One full read of every retained and review file is saved (the rectify stage took 3.5 s instead of 6.4 s on 489 real files). With --sanitise and --keep-working-files the check stays, since sanitising reads those copies. --sort copies are still checked.
  • The Docker image now includes pigz, so archives are compressed on every core (a 3.3 GB sanitised run took about 3 minutes instead of 30), and the Docker example in the installation guide passes -u so output is not root-owned.
  • Reports and manifests are written as UTF-8.

v2.9.0

Choose a tag to compare

@srikash srikash released this 06 Nov 16:02

Integrity and provenance checks, speed-ups, and a new sort mode (--sort). Sanitised and archived output is unchanged for inputs that
pass the checks; inputs that fail one now stop the run instead of being processed.

  • Detect source files that change during capture or processing, and carry source provenance through to finalisation.
  • Verify sanitised files after writing them: pixel data and interpretation fields, PatientID, and the SOP Instance UID in the header and file meta.
  • Reuse the digests gathered while archiving the source to detect duplicates and check copies.
  • Write sanitised output directly from the source files unless --keep-working-files asks for the intermediate copies; move verified unzipped output into place instead of copying it.
  • Apply a policy-supplied series description (replace/add) to folder names.
  • Validate every study label and policy before archiving, and stop the compressor promptly on interruption.
  • Preserve policy-added code sequences. Share the image-verification, sanitisation and audit-folder summary code between stages.
  • Split the README into docs/ guides.
  • A custom policy that regenerates some UIDs (such as the study or frame of reference) but not SOPInstanceUID now also updates references and private elements that held those UIDs, instead of leaving the original value beside its replacement.
  • Use several CPUs within a subject (subjects still run one after another): the finished output is re-read, and a sanitising run's files are written, in a pool of processes for large subjects. Every replacement value is decided from all files before any is written, so output no longer depends on file order. On 489 real files (3.8 GB) a minimal run took about 84 s instead of 123 s.
  • Limit pool workers so they fit in half the available memory (a container's memory limit counts), which matters for very large multi-frame files. Copies are compared with their source digests inside the read-back pool, and an archive is no longer re-hashed straight after its checksum is written. A filename's SOP UID swap now touches only the UID segment, and spaces around --mapping pairs are ignored.
  • Add --sort, --sort-in-place and --dry-run: sort a folder of DICOMs into <subject>/<series>/ subfolders (in place when the files are all directly in the source folder, otherwise as a copy with --out-dir), with a plan-first dry run. capture is now the one public function, taking a working folder instead of a run.
  • Add tests/data/ to .gitignore (the docs already said it was ignored).
  • Rename LICENSE to LICENCE (content unchanged).
  • Remove helpers the program never called (only importable from Python): copy_tree, make_tarball_from_files, find_duplicate_files, iter_dicom_files and generate_default_label.

v2.7.4

Choose a tag to compare

@srikash srikash released this 21 Oct 17:47
  • Fix: a byte-identical copy of a file in another folder (for example two copies of one export under one --source-dir) made the run fail at finalise. rectify now writes such a copy once, and stage-02-report.json reports how many were skipped.
  • --sanitise: the files in reports/ no longer carry source filenames, folder names or original UIDs (they are listed as folder-NN/NNNN). A source-map CSV in archives/, written early in the run, links them back to the real names.
  • A policy that does not keep the series description (such as full) now keeps it out of archive folder names and reports.
  • The audit's duplicate note uses the files' real names, so extensionless exports are described correctly.
  • This release also carries the changes prepared as v2.7.2 and v2.7.3, which were never published.

See CHANGELOG.md for the full history.

v2.7.0

Choose a tag to compare

@srikash srikash released this 21 Oct 03:19

v2.7.0

Breaking: rectified filenames change. Files are now named
<series>_<instance>_<SOPInstanceUID>_e<echo>.dcm (previously
<series>_<SeriesInstanceUID>_<instance>_e<echo>.dcm). The SOP Instance UID is unique per file, so
names no longer rely on instance numbers. With --sanitise, files are renamed after their UID is
regenerated, so the filename matches the header and no longer carries the original UID.

  • A duplicate is now strictly a byte-for-byte copy. Previously a file was a duplicate if its parsed
    content matched another file's, ignoring its SOP Instance UID and creation time. A re-saved copy
    with a new UID is therefore no longer reported as a duplicate.
  • Files that share a SOP Instance UID but differ in bytes are no longer treated as duplicates. They
    go to review with reason sop_conflict, and the run continues.
  • The duplicate you keep is the numerically first file (2.dcm before 10.dcm), not the first in
    string order.
  • A NOTES section follows the audit table and is written to stage-01-report.json (notes) and
    stage-01-audit.csv (notes, sop_conflict_count). It names the file that belongs to another
    series, which files repeat which, and why series metadata varies.
  • Enhanced (multi-frame) MR: the echo number and time are read from the per-frame groups, so
    multi-echo files are no longer all named _e01. Each series now reports echoes, ASL
    label/control and an inferred TI index (stage-03 report series_inventory). The TI is inferred
    from acquisition order only, and only when the headers state no inversion time.
  • Byte-identical files that land on one name in the review tree are written once instead of
    getting -dupNN names (review_identical_files_not_rewritten in stage-02-report.json).
  • stage-01-audit.csv gains sop_conflict_count and notes columns.

v2.6.5

Choose a tag to compare

@srikash srikash released this 05 Oct 16:59
  • Archive creation (source, dichotomised, and review archives) now prefers pigz for gzip compression when it's on PATH -- parallel across CPU cores, versus the single-threaded stdlib gzip/zlib codec used otherwise. The CLI reports "pigz found, using it." up front when it's available.
  • Added CITATION.cff with the Zenodo DOI, so GitHub renders a "Cite this repository" button.

See CHANGELOG.md for the full history.

v2.6.4

Choose a tag to compare

@srikash srikash released this 05 Oct 15:31
  • README: document plain venv and conda/mamba as the primary install paths; uv is now its own section, kept for continuity with this project's dev/CI setup rather than presented as the default.
  • This is the first version published as an actual GitHub release (rather than just a git tag), so that Zenodo's GitHub integration can archive it and mint a DOI.

See CHANGELOG.md for the full history.