We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7db5bf commit 21113e3Copy full SHA for 21113e3
nibabel/spatialimages.py
@@ -566,6 +566,7 @@ def update_header(self) -> None:
566
567
def _affine2header(self) -> None:
568
"""Unconditionally set affine into the header"""
569
+ assert self._affine is not None
570
RZS = self._affine[:3, :3]
571
vox = np.sqrt(np.sum(RZS * RZS, axis=0))
572
hdr = self._header
0 commit comments