@@ -482,29 +482,21 @@ class TestFillTime(BaseDataset):
482
482
Feature: Datasets created with specified fill time property
483
483
"""
484
484
485
- def test_contiguous_default (self ):
486
- """ Fill time default to IFSET for contiguous storage """
485
+ def test_fill_time_default (self ):
486
+ """ Fill time default to IFSET """
487
487
dset = self .f .create_dataset ('foo' , (10 ,), fillvalue = 4.0 )
488
488
plist = dset .id .get_create_plist ()
489
489
self .assertEqual (plist .get_fill_time (), h5py .h5d .FILL_TIME_IFSET )
490
490
self .assertEqual (dset [0 ], 4.0 )
491
491
self .assertEqual (dset [7 ], 4.0 )
492
492
493
- def test_chunk_default (self ):
494
- """ Fill time default to ALLOC for chunked storage """
495
- dset = self .f .create_dataset ('foo' , (10 ,), chunks = (2 ,), fillvalue = 4.0 )
496
- plist = dset .id .get_create_plist ()
497
- self .assertEqual (plist .get_fill_time (), h5py .h5d .FILL_TIME_ALLOC )
498
- self .assertEqual (dset [0 ], 4.0 )
499
- self .assertEqual (dset [7 ], 4.0 )
500
-
501
493
@ut .skipIf ('gzip' not in h5py .filters .encode , "DEFLATE is not installed" )
502
494
def test_compressed_default (self ):
503
- """ Fill time is ALLOC for compressed dataset (chunked) """
495
+ """ Fill time is IFSET for compressed dataset (chunked) """
504
496
dset = self .f .create_dataset ('foo' , (10 ,), compression = 'gzip' ,
505
497
fillvalue = 4.0 )
506
498
plist = dset .id .get_create_plist ()
507
- self .assertEqual (plist .get_fill_time (), h5py .h5d .FILL_TIME_ALLOC )
499
+ self .assertEqual (plist .get_fill_time (), h5py .h5d .FILL_TIME_IFSET )
508
500
self .assertEqual (dset [0 ], 4.0 )
509
501
self .assertEqual (dset [7 ], 4.0 )
510
502
@@ -519,16 +511,14 @@ def test_fill_time_never(self):
519
511
self .assertNotEqual (dset [7 ], 4.0 )
520
512
521
513
def test_fill_time_alloc (self ):
522
- """ Fill time explicitly set to ALLOC (default is IFSET for contiguous
523
- storage """
514
+ """ Fill time explicitly set to ALLOC """
524
515
dset = self .f .create_dataset ('foo' , (10 ,), fillvalue = 4.0 ,
525
516
fill_time = 'alloc' )
526
517
plist = dset .id .get_create_plist ()
527
518
self .assertEqual (plist .get_fill_time (), h5py .h5d .FILL_TIME_ALLOC )
528
519
529
520
def test_fill_time_ifset (self ):
530
- """ Fill time explicitly set to IFSET (default is ALLOC for chunked
531
- storage """
521
+ """ Fill time explicitly set to IFSET """
532
522
dset = self .f .create_dataset ('foo' , (10 ,), chunks = (2 ,), fillvalue = 4.0 ,
533
523
fill_time = 'ifset' )
534
524
plist = dset .id .get_create_plist ()
0 commit comments