@@ -315,9 +315,9 @@ def default_structarr(klass, endianness=None):
315
315
hdr_data ['type' ] = 3
316
316
hdr_data ['goodRASFlag' ] = 1
317
317
hdr_data ['delta' ][:] = np .array ([1 , 1 , 1 ])
318
- hdr_data ['Mdc' ][0 ][: ] = np .array ([- 1 , 0 , 0 ]) # x_ras
319
- hdr_data ['Mdc' ][1 ][:] = np .array ([0 , 0 , - 1 ]) # y_ras
320
- hdr_data ['Mdc' ][2 ][:] = np .array ([0 , 1 , 0 ]) # z_ras
318
+ hdr_data ['Mdc' ][:, 0 ] = np .array ([- 1 , 0 , 0 ]) # x_ras
319
+ hdr_data ['Mdc' ][:, 1 ] = np .array ([0 , 0 , 1 ]) # y_ras
320
+ hdr_data ['Mdc' ][:, 2 ] = np .array ([0 , - 1 , 0 ]) # z_ras
321
321
hdr_data ['Pxyz_c' ] = np .array ([0 , 0 , 0 ]) # c_ras
322
322
hdr_data ['mrparms' ] = np .array ([0 , 0 , 0 , 0 ])
323
323
return hdr_data
@@ -327,9 +327,9 @@ def _set_affine_default(self):
327
327
'''
328
328
self ._structarr ['goodRASFlag' ] = 1
329
329
self ._structarr ['delta' ][:] = np .array ([1 , 1 , 1 ])
330
- self . _structarr ['Mdc' ][0 ][: ] = np .array ([- 1 , 0 , 0 ]) # x_ras
331
- self . _structarr ['Mdc' ][1 ][:] = np .array ([0 , 0 , - 1 ]) # y_ras
332
- self . _structarr ['Mdc' ][2 ][:] = np .array ([0 , 1 , 0 ]) # z_ras
330
+ hdr_data ['Mdc' ][:, 0 ] = np .array ([- 1 , 0 , 0 ]) # x_ras
331
+ hdr_data ['Mdc' ][:, 1 ] = np .array ([0 , 0 , 1 ]) # y_ras
332
+ hdr_data ['Mdc' ][:, 2 ] = np .array ([0 , - 1 , 0 ]) # z_ras
333
333
self ._structarr ['Pxyz_c' ][:] = np .array ([0 , 0 , 0 ]) # c_ras
334
334
335
335
def writehdr_to (self , fileobj ):
0 commit comments