@@ -169,6 +169,12 @@ def test_frame(self):
169
169
self ._check_roundtrip (tdf , tm .assert_frame_equal ,
170
170
compression = True )
171
171
172
+ # not consolidated
173
+ df ['foo' ] = np .random .randn (len (df ))
174
+ self .store ['df' ] = df
175
+ recons = self .store ['df' ]
176
+ self .assert_ (recons ._data .is_consolidated ())
177
+
172
178
def test_store_mixed (self ):
173
179
def _make_one ():
174
180
df = tm .makeDataFrame ()
@@ -200,6 +206,16 @@ def _make_one():
200
206
self ._check_roundtrip (df1 ['bool1' ], tm .assert_series_equal )
201
207
self ._check_roundtrip (df1 ['int1' ], tm .assert_series_equal )
202
208
209
+ # try with compression
210
+ self ._check_roundtrip (df1 ['obj1' ], tm .assert_series_equal ,
211
+ compression = True )
212
+ self ._check_roundtrip (df1 ['bool1' ], tm .assert_series_equal ,
213
+ compression = True )
214
+ self ._check_roundtrip (df1 ['int1' ], tm .assert_series_equal ,
215
+ compression = True )
216
+ self ._check_roundtrip (df1 , tm .assert_frame_equal ,
217
+ compression = True )
218
+
203
219
def test_wide (self ):
204
220
wp = tm .makeWidePanel ()
205
221
self ._check_roundtrip (wp , tm .assert_panel_equal )
@@ -293,7 +309,6 @@ def test_select_filter_corner(self):
293
309
def _check_roundtrip (self , obj , comparator , compression = False ):
294
310
options = {}
295
311
if compression :
296
- options ['complevel' ] = 9
297
312
options ['complib' ] = 'blosc'
298
313
299
314
store = HDFStore (self .scratchpath , 'w' , ** options )
@@ -308,7 +323,6 @@ def _check_roundtrip(self, obj, comparator, compression=False):
308
323
def _check_roundtrip_table (self , obj , comparator , compression = False ):
309
324
options = {}
310
325
if compression :
311
- options ['complevel' ] = 9
312
326
options ['complib' ] = 'blosc'
313
327
314
328
store = HDFStore (self .scratchpath , 'w' , ** options )
0 commit comments