Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
- `requirements.txt` removed; dev setup: `pip install -e ".[dev]"`.
- Python version matrix added to CI (3.10, 3.11, 3.12, 3.13).
- `dependabot.yml` added for monthly pip and GitHub Actions updates.
- Bumped xsdata to 26.2 (`>=26.2` runtime, `==26.2` dev/codegen pin); regenerated
schema code (xsdata 26.2 no longer emits redundant `"required": True` in field
metadata — no behavioral change for this library).

## v1.14.2

Expand Down
2 changes: 1 addition & 1 deletion conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ requirements:
- python >=3.10
- numpy>=1.22.0
- h5py>=2.3
- xsdata>=26.1
- xsdata>=26.2

test:
imports:
Expand Down
49 changes: 0 additions & 49 deletions ismrmrd/xsd/ismrmrdschema/ismrmrd.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ class accelerationFactorType:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
kspace_encoding_step_2: int = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)

Expand All @@ -40,14 +38,12 @@ class coilLabelType:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
coilName: str = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)

Expand Down Expand Up @@ -75,7 +71,6 @@ class experimentalConditionsType:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)

Expand All @@ -89,21 +84,18 @@ class Meta:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
y: float = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
z: float = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)

Expand All @@ -114,21 +106,18 @@ class gradientDirectionType:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
ap: float = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
fh: float = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)

Expand All @@ -148,23 +137,20 @@ class limitType:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
},
)
maximum: int = field(
default=0,
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
},
)
center: int = field(
default=0,
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
},
)

Expand All @@ -176,23 +162,20 @@ class matrixSizeType:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
},
)
y: int = field(
default=1,
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
},
)
z: int = field(
default=1,
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
},
)

Expand All @@ -203,14 +186,12 @@ class measurementDependencyType:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
measurementID: str = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)

Expand Down Expand Up @@ -368,21 +349,18 @@ class threeDimensionalFloat:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
y: float = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
z: float = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)

Expand All @@ -402,14 +380,12 @@ class userParameterBase64Type:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
value: bytes = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
"format": "base64",
}
)
Expand All @@ -421,14 +397,12 @@ class userParameterDoubleType:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
value: float = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)

Expand All @@ -439,14 +413,12 @@ class userParameterLongType:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
value: int = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)

Expand All @@ -457,14 +429,12 @@ class userParameterStringType:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
value: str = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)

Expand Down Expand Up @@ -558,14 +528,12 @@ class diffusionType:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
bvalue: float = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)

Expand Down Expand Up @@ -706,14 +674,12 @@ class encodingSpaceType:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
fieldOfView_mm: fieldOfViewMm = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)

Expand Down Expand Up @@ -745,7 +711,6 @@ class measurementInformationType:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
relativeTablePosition: None | threeDimensionalFloat = field(
Expand Down Expand Up @@ -827,28 +792,24 @@ class multibandType:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
multiband_factor: int = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
calibration: multibandCalibrationType = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
calibration_encoding: int = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)

Expand All @@ -859,7 +820,6 @@ class trajectoryDescriptionType:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
userParameterLong: list[userParameterLongType] = field(
Expand Down Expand Up @@ -930,7 +890,6 @@ class parallelImagingType:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
calibrationMode: None | calibrationModeType = field(
Expand Down Expand Up @@ -1029,21 +988,18 @@ class waveformInformationType:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
waveformType: waveformInformationTypeWaveformType = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
userParameters: userParametersType = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)

Expand All @@ -1054,28 +1010,24 @@ class encodingType:
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
reconSpace: encodingSpaceType = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
encodingLimits: encodingLimitsType = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
trajectory: trajectoryType = field(
metadata={
"type": "Element",
"namespace": "http://www.ismrm.org/ISMRMRD",
"required": True,
}
)
trajectoryDescription: None | trajectoryDescriptionType = field(
Expand Down Expand Up @@ -1141,7 +1093,6 @@ class Meta:
experimentalConditions: experimentalConditionsType = field(
metadata={
"type": "Element",
"required": True,
}
)
encoding: list[encodingType] = field(
Expand Down
Loading
Loading