mrd-python 2.0.0__tar.gz
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_python-2.0.0/PKG-INFO +19 -0
- mrd_python-2.0.0/README.md +1 -0
- mrd_python-2.0.0/mrd/__init__.py +96 -0
- mrd_python-2.0.0/mrd/_binary.py +1339 -0
- mrd_python-2.0.0/mrd/_dtypes.py +89 -0
- mrd_python-2.0.0/mrd/_ndjson.py +1194 -0
- mrd_python-2.0.0/mrd/binary.py +680 -0
- mrd_python-2.0.0/mrd/ndjson.py +2716 -0
- mrd_python-2.0.0/mrd/protocols.py +180 -0
- mrd_python-2.0.0/mrd/tools/export_png_images.py +39 -0
- mrd_python-2.0.0/mrd/tools/minimal_example.py +27 -0
- mrd_python-2.0.0/mrd/tools/phantom.py +161 -0
- mrd_python-2.0.0/mrd/tools/simulation.py +173 -0
- mrd_python-2.0.0/mrd/tools/stream_recon.py +184 -0
- mrd_python-2.0.0/mrd/tools/transform.py +37 -0
- mrd_python-2.0.0/mrd/types.py +1840 -0
- mrd_python-2.0.0/mrd/yardl_types.py +303 -0
- mrd_python-2.0.0/mrd_python.egg-info/PKG-INFO +19 -0
- mrd_python-2.0.0/mrd_python.egg-info/SOURCES.txt +23 -0
- mrd_python-2.0.0/mrd_python.egg-info/dependency_links.txt +1 -0
- mrd_python-2.0.0/mrd_python.egg-info/requires.txt +2 -0
- mrd_python-2.0.0/mrd_python.egg-info/top_level.txt +1 -0
- mrd_python-2.0.0/pyproject.toml +28 -0
- mrd_python-2.0.0/setup.cfg +4 -0
- mrd_python-2.0.0/setup.py +7 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: mrd-python
|
|
3
|
+
Version: 2.0.0
|
|
4
|
+
Summary: Library and tools for working with data in the ISMRM Raw Data (MRD) format.
|
|
5
|
+
Project-URL: Homepage, https://ismrmrd.github.io/mrd
|
|
6
|
+
Project-URL: Documentation, https://ismrmrd.github.io/mrd
|
|
7
|
+
Project-URL: Repository, https://github.com/ismrmrd/mrd
|
|
8
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
|
|
14
|
+
Requires-Python: >=3.9
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
Requires-Dist: numpy>=1.22.0
|
|
17
|
+
Requires-Dist: pillow>=9.2.0
|
|
18
|
+
|
|
19
|
+
Library and tools for working with data in the ISMRM Raw Data (MRD) format.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Library and tools for working with data in the ISMRM Raw Data (MRD) format.
|
|
@@ -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
|
+
)
|