ReconPlugin.run#
- ReconPlugin.run()[source]#
Reconstruct one ISMRMRD HDF5 file in this process, through the same hooks.
The file’s waveforms are delivered before its acquisitions. With
storeordesign, the file is a series as the scanner sends it, such aspulserver.virtual.record()or the proxy’s--save-datawrites, and is enriched from the design it was played from, at the field-of-view offset its header states, as the proxy enriches it.- Parameters:
path (str) – ISMRMRD HDF5 file.
group (str, default='dataset') – HDF5 group holding the scan.
exam_id (Hashable, default=None) – Identifier of the exam cache;
pathwhen not given.config (str, default=None) – Configuration payload, as a stream would carry it.
store (str, default=None) – Design store, one directory per scan, as the design calls write it; the design is the one the header names.
design (str, default=None) – The design’s sequence file, the first of its chain, in place of
store:<store>/<scan>/<id>/sequence.seqor a copy of it, with the design’s manifest beside it.dicom (bool, default=False) – Convert every MRD image emitted to DICOM, as the proxy’s
--dicomdoes.dicom_dictionary (str, default=None) – Private DICOM dictionary the header’s
dicom:attributes are resolved against, in place of the one the header names (DICOM attributes).
- Returns:
Everything emitted, in order: MRD images, named DICOM datasets for results with
dicom=Trueand, underdicom, for every image, and any other output the plugin returned.- Return type:
- Raises:
FileNotFoundError – If there is no such file, no such design, or no manifest beside
design.ValueError – If the file has no MRD XML header, if both
storeanddesignare given, ifdesignis not a file its manifest records, if the header names another design, or if the series does not match its design’s readouts.