mrd-python 2.0.0rc1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mrd/__init__.py +96 -0
- mrd/_binary.py +1339 -0
- mrd/_dtypes.py +89 -0
- mrd/_ndjson.py +1194 -0
- mrd/binary.py +680 -0
- mrd/ndjson.py +2716 -0
- mrd/protocols.py +180 -0
- mrd/tools/export_png_images.py +39 -0
- mrd/tools/phantom.py +161 -0
- mrd/tools/simulation.py +173 -0
- mrd/tools/stream_recon.py +184 -0
- mrd/tools/transform.py +37 -0
- mrd/types.py +1714 -0
- mrd/yardl_types.py +303 -0
- mrd_python-2.0.0rc1.dist-info/LICENSE +8 -0
- mrd_python-2.0.0rc1.dist-info/METADATA +28 -0
- mrd_python-2.0.0rc1.dist-info/RECORD +19 -0
- mrd_python-2.0.0rc1.dist-info/WHEEL +5 -0
- mrd_python-2.0.0rc1.dist-info/top_level.txt +1 -0
mrd/__init__.py
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# This file was generated by the "yardl" tool. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# pyright: reportUnusedImport=false
|
|
4
|
+
from typing import Tuple as _Tuple
|
|
5
|
+
import re as _re
|
|
6
|
+
import numpy as _np
|
|
7
|
+
|
|
8
|
+
_MIN_NUMPY_VERSION = (1, 22, 0)
|
|
9
|
+
|
|
10
|
+
def _parse_version(version: str) -> _Tuple[int, ...]:
|
|
11
|
+
try:
|
|
12
|
+
return tuple(map(int, version.split(".")))
|
|
13
|
+
except ValueError:
|
|
14
|
+
# ignore any prerelease suffix
|
|
15
|
+
version = _re.sub(r"[^0-9.]", "", version)
|
|
16
|
+
return tuple(map(int, version.split(".")))
|
|
17
|
+
|
|
18
|
+
if _parse_version(_np.__version__) < _MIN_NUMPY_VERSION:
|
|
19
|
+
raise ImportError(f"Your installed numpy version is {_np.__version__}, but version >= {'.'.join(str(i) for i in _MIN_NUMPY_VERSION)} is required.")
|
|
20
|
+
|
|
21
|
+
from .yardl_types import *
|
|
22
|
+
from .types import (
|
|
23
|
+
AccelerationFactorType,
|
|
24
|
+
Acquisition,
|
|
25
|
+
AcquisitionData,
|
|
26
|
+
AcquisitionFlags,
|
|
27
|
+
AcquisitionSystemInformationType,
|
|
28
|
+
Calibration,
|
|
29
|
+
CalibrationMode,
|
|
30
|
+
CoilLabelType,
|
|
31
|
+
DiffusionDimension,
|
|
32
|
+
DiffusionType,
|
|
33
|
+
EncodingCounters,
|
|
34
|
+
EncodingLimitsType,
|
|
35
|
+
EncodingSpaceType,
|
|
36
|
+
EncodingType,
|
|
37
|
+
ExperimentalConditionsType,
|
|
38
|
+
FieldOfViewMm,
|
|
39
|
+
GradientDirectionType,
|
|
40
|
+
Header,
|
|
41
|
+
Image,
|
|
42
|
+
ImageComplexDouble,
|
|
43
|
+
ImageComplexFloat,
|
|
44
|
+
ImageData,
|
|
45
|
+
ImageDouble,
|
|
46
|
+
ImageFlags,
|
|
47
|
+
ImageFloat,
|
|
48
|
+
ImageInt,
|
|
49
|
+
ImageInt16,
|
|
50
|
+
ImageMetaData,
|
|
51
|
+
ImageType,
|
|
52
|
+
ImageUint,
|
|
53
|
+
ImageUint16,
|
|
54
|
+
InterleavingDimension,
|
|
55
|
+
LimitType,
|
|
56
|
+
MatrixSizeType,
|
|
57
|
+
MeasurementDependencyType,
|
|
58
|
+
MeasurementInformationType,
|
|
59
|
+
MultibandSpacingType,
|
|
60
|
+
MultibandType,
|
|
61
|
+
ParallelImagingType,
|
|
62
|
+
PatientGender,
|
|
63
|
+
PatientPosition,
|
|
64
|
+
ReferencedImageSequenceType,
|
|
65
|
+
SequenceParametersType,
|
|
66
|
+
StreamItem,
|
|
67
|
+
StudyInformationType,
|
|
68
|
+
SubjectInformationType,
|
|
69
|
+
ThreeDimensionalFloat,
|
|
70
|
+
Trajectory,
|
|
71
|
+
TrajectoryData,
|
|
72
|
+
TrajectoryDescriptionType,
|
|
73
|
+
UserParameterBase64Type,
|
|
74
|
+
UserParameterDoubleType,
|
|
75
|
+
UserParameterLongType,
|
|
76
|
+
UserParameterStringType,
|
|
77
|
+
UserParametersType,
|
|
78
|
+
Waveform,
|
|
79
|
+
WaveformInformationType,
|
|
80
|
+
WaveformSamples,
|
|
81
|
+
WaveformType,
|
|
82
|
+
WaveformUint32,
|
|
83
|
+
get_dtype,
|
|
84
|
+
)
|
|
85
|
+
from .protocols import (
|
|
86
|
+
MrdReaderBase,
|
|
87
|
+
MrdWriterBase,
|
|
88
|
+
)
|
|
89
|
+
from .binary import (
|
|
90
|
+
BinaryMrdReader,
|
|
91
|
+
BinaryMrdWriter,
|
|
92
|
+
)
|
|
93
|
+
from .ndjson import (
|
|
94
|
+
NDJsonMrdReader,
|
|
95
|
+
NDJsonMrdWriter,
|
|
96
|
+
)
|