File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ def __init__(self,
104
104
super (MGHHeader , self ).__init__ (binaryblock = binaryblock ,
105
105
endianness = endianness ,
106
106
check = False )
107
- if int (self ._structarr ['goodRASFlag' ]) < 0 :
107
+ if int (self ._structarr ['goodRASFlag' ]) < 1 :
108
108
self ._set_affine_default ()
109
109
if check :
110
110
self .check_fix ()
@@ -325,6 +325,7 @@ def default_structarr(klass, endianness=None):
325
325
def _set_affine_default (self ):
326
326
''' If goodRASFlag is 0, return the default delta, Mdc and Pxyz_c
327
327
'''
328
+ self ._structarr ['goodRASFlag' ] = 1
328
329
self ._structarr ['delta' ][:] = np .array ([1 , 1 , 1 ])
329
330
self ._structarr ['Mdc' ][0 ][:] = np .array ([- 1 , 0 , 0 ]) # x_ras
330
331
self ._structarr ['Mdc' ][1 ][:] = np .array ([0 , 0 , - 1 ]) # y_ras
You can’t perform that action at this time.
0 commit comments