Repository navigation
Releases
v2.9.4
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 1runs without parallelism. The memory limit still applies, so a very largeNmay start fewer workers.
v2.9.3
v2.9.2
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 (
pigzor Python's own); errors reading a source file are not relabelled. Withpigz, a full disk stopspigzat once, so the run fails straight away.verify_archivestill checks an archive against its checksum later.
v2.9.1
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--sanitiseand--keep-working-filesthe check stays, since sanitising reads those copies.--sortcopies 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-uso output is not root-owned. - Reports and manifests are written as UTF-8.
v2.9.0
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-filesasks 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
SOPInstanceUIDnow 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
minimalrun 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
--mappingpairs are ignored. - Add
--sort,--sort-in-placeand--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.captureis 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
LICENSEtoLICENCE(content unchanged). - Remove helpers the program never called (only importable from Python):
copy_tree,make_tarball_from_files,find_duplicate_files,iter_dicom_filesandgenerate_default_label.
v2.7.4
- 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.rectifynow writes such a copy once, andstage-02-report.jsonreports how many were skipped. --sanitise: the files inreports/no longer carry source filenames, folder names or original UIDs (they are listed asfolder-NN/NNNN). A source-map CSV inarchives/, 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
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 reasonsop_conflict, and the run continues. - The duplicate you keep is the numerically first file (
2.dcmbefore10.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 reportseries_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-dupNNnames (review_identical_files_not_rewritteninstage-02-report.json). stage-01-audit.csvgainssop_conflict_countandnotescolumns.
v2.6.5
- Archive creation (source, dichotomised, and review archives) now prefers
pigzfor gzip compression when it's on PATH -- parallel across CPU cores, versus the single-threaded stdlibgzip/zlibcodec used otherwise. The CLI reports "pigz found, using it." up front when it's available. - Added
CITATION.cffwith the Zenodo DOI, so GitHub renders a "Cite this repository" button.
See CHANGELOG.md for the full history.
v2.6.4
- README: document plain
venvand conda/mamba as the primary install paths;uvis 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.