ReconPlugin.run

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 store or design, the file is a series as the scanner sends it, such as pulserver.virtual.record() or the proxy’s --save-data writes, 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; path when 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.seq or 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 --dicom does.

  • 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=True and, under dicom, for every image, and any other output the plugin returned.

Return type:

list

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 store and design are given, if design is not a file its manifest records, if the header names another design, or if the series does not match its design’s readouts.