@@ -219,7 +219,7 @@ def test_dtseries():
219
219
ci .save (img , 'test.dtseries.nii' )
220
220
img2 = nib .load ('test.dtseries.nii' )
221
221
assert_equal (img2 .nifti_header .get_intent ()[0 ],
222
- 'dense data series/fiber fans ' )
222
+ 'ConnDenseSeries ' )
223
223
assert_true (isinstance (img2 , ci .Cifti2Image ))
224
224
assert_true ((img2 .get_data () == data ).all ())
225
225
check_series_map (img2 .header .matrix .get_index_map (0 ))
@@ -241,7 +241,7 @@ def test_dscalar():
241
241
with InTemporaryDirectory ():
242
242
ci .save (img , 'test.dscalar.nii' )
243
243
img2 = nib .load ('test.dscalar.nii' )
244
- assert_equal (img2 .nifti_header .get_intent ()[0 ], 'dense scalar ' )
244
+ assert_equal (img2 .nifti_header .get_intent ()[0 ], 'ConnDenseScalar ' )
245
245
assert_true (isinstance (img2 , ci .Cifti2Image ))
246
246
assert_true ((img2 .get_data () == data ).all ())
247
247
check_scalar_map (img2 .header .matrix .get_index_map (0 ))
@@ -263,7 +263,7 @@ def test_dlabel():
263
263
with InTemporaryDirectory ():
264
264
ci .save (img , 'test.dlabel.nii' )
265
265
img2 = nib .load ('test.dlabel.nii' )
266
- assert_equal (img2 .nifti_header .get_intent ()[0 ], 'dense label ' )
266
+ assert_equal (img2 .nifti_header .get_intent ()[0 ], 'ConnDenseLabel ' )
267
267
assert_true (isinstance (img2 , ci .Cifti2Image ))
268
268
assert_true ((img2 .get_data () == data ).all ())
269
269
check_label_map (img2 .header .matrix .get_index_map (0 ))
@@ -283,7 +283,7 @@ def test_dconn():
283
283
with InTemporaryDirectory ():
284
284
ci .save (img , 'test.dconn.nii' )
285
285
img2 = nib .load ('test.dconn.nii' )
286
- assert_equal (img2 .nifti_header .get_intent ()[0 ], 'dense connectivity ' )
286
+ assert_equal (img2 .nifti_header .get_intent ()[0 ], 'ConnDense ' )
287
287
assert_true (isinstance (img2 , ci .Cifti2Image ))
288
288
assert_true ((img2 .get_data () == data ).all ())
289
289
assert_equal (img2 .header .matrix .get_index_map (0 ),
@@ -306,8 +306,7 @@ def test_ptseries():
306
306
with InTemporaryDirectory ():
307
307
ci .save (img , 'test.ptseries.nii' )
308
308
img2 = nib .load ('test.ptseries.nii' )
309
- assert_equal (img2 .nifti_header .get_intent ()[0 ],
310
- 'parcellated data series' )
309
+ assert_equal (img2 .nifti_header .get_intent ()[0 ], 'ConnParcelSries' )
311
310
assert_true (isinstance (img2 , ci .Cifti2Image ))
312
311
assert_true ((img2 .get_data () == data ).all ())
313
312
check_series_map (img2 .header .matrix .get_index_map (0 ))
@@ -329,7 +328,7 @@ def test_pscalar():
329
328
with InTemporaryDirectory ():
330
329
ci .save (img , 'test.pscalar.nii' )
331
330
img2 = nib .load ('test.pscalar.nii' )
332
- assert_equal (img2 .nifti_header .get_intent ()[0 ], 'parcellated scalar ' )
331
+ assert_equal (img2 .nifti_header .get_intent ()[0 ], 'ConnParcelScalr ' )
333
332
assert_true (isinstance (img2 , ci .Cifti2Image ))
334
333
assert_true ((img2 .get_data () == data ).all ())
335
334
check_scalar_map (img2 .header .matrix .get_index_map (0 ))
@@ -351,8 +350,7 @@ def test_pdconn():
351
350
with InTemporaryDirectory ():
352
351
ci .save (img , 'test.pdconn.nii' )
353
352
img2 = ci .load ('test.pdconn.nii' )
354
- assert_equal (img2 .nifti_header .get_intent ()[0 ],
355
- 'parcellated dense connectivity' )
353
+ assert_equal (img2 .nifti_header .get_intent ()[0 ], 'ConnParcelDense' )
356
354
assert_true (isinstance (img2 , ci .Cifti2Image ))
357
355
assert_true ((img2 .get_data () == data ).all ())
358
356
check_geometry_map (img2 .header .matrix .get_index_map (0 ))
@@ -374,8 +372,7 @@ def test_dpconn():
374
372
with InTemporaryDirectory ():
375
373
ci .save (img , 'test.dpconn.nii' )
376
374
img2 = ci .load ('test.dpconn.nii' )
377
- assert_equal (img2 .nifti_header .get_intent ()[0 ],
378
- 'dense parcellated connectivity' )
375
+ assert_equal (img2 .nifti_header .get_intent ()[0 ], 'ConnDenseParcel' )
379
376
assert_true (isinstance (img2 , ci .Cifti2Image ))
380
377
assert_true ((img2 .get_data () == data ).all ())
381
378
check_parcel_map (img2 .header .matrix .get_index_map (0 ))
@@ -396,8 +393,7 @@ def test_plabel():
396
393
with InTemporaryDirectory ():
397
394
ci .save (img , 'test.plabel.nii' )
398
395
img2 = ci .load ('test.plabel.nii' )
399
- assert_equal (img .nifti_header .get_intent ()[0 ],
400
- 'dense fiber/fan samples' )
396
+ assert_equal (img .nifti_header .get_intent ()[0 ], 'ConnUnknown' )
401
397
assert_true (isinstance (img2 , ci .Cifti2Image ))
402
398
assert_true ((img2 .get_data () == data ).all ())
403
399
check_label_map (img2 .header .matrix .get_index_map (0 ))
@@ -417,8 +413,7 @@ def test_pconn():
417
413
with InTemporaryDirectory ():
418
414
ci .save (img , 'test.pconn.nii' )
419
415
img2 = ci .load ('test.pconn.nii' )
420
- assert_equal (img .nifti_header .get_intent ()[0 ],
421
- 'parcellated connectivity' )
416
+ assert_equal (img .nifti_header .get_intent ()[0 ], 'ConnParcels' )
422
417
assert_true (isinstance (img2 , ci .Cifti2Image ))
423
418
assert_true ((img2 .get_data () == data ).all ())
424
419
assert_equal (img2 .header .matrix .get_index_map (0 ),
@@ -443,8 +438,7 @@ def test_pconnseries():
443
438
with InTemporaryDirectory ():
444
439
ci .save (img , 'test.pconnseries.nii' )
445
440
img2 = ci .load ('test.pconnseries.nii' )
446
- assert_equal (img .nifti_header .get_intent ()[0 ],
447
- 'parcellated connectivity series' )
441
+ assert_equal (img .nifti_header .get_intent ()[0 ], 'ConnPPSr' )
448
442
assert_true (isinstance (img2 , ci .Cifti2Image ))
449
443
assert_true ((img2 .get_data () == data ).all ())
450
444
assert_equal (img2 .header .matrix .get_index_map (0 ),
@@ -470,8 +464,7 @@ def test_pconnscalar():
470
464
with InTemporaryDirectory ():
471
465
ci .save (img , 'test.pconnscalar.nii' )
472
466
img2 = ci .load ('test.pconnscalar.nii' )
473
- assert_equal (img .nifti_header .get_intent ()[0 ],
474
- 'parcellated connectivity scalar' )
467
+ assert_equal (img .nifti_header .get_intent ()[0 ], 'ConnPPSc' )
475
468
assert_true (isinstance (img2 , ci .Cifti2Image ))
476
469
assert_true ((img2 .get_data () == data ).all ())
477
470
assert_equal (img2 .header .matrix .get_index_map (0 ),
0 commit comments