File tree 2 files changed +4
-14
lines changed
2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -984,7 +984,7 @@ def put(
984
984
data_columns : Optional [List [str ]] = None ,
985
985
encoding = None ,
986
986
errors : str = "strict" ,
987
- track_times : Optional [ bool ] = None ,
987
+ track_times : bool = True ,
988
988
):
989
989
"""
990
990
Store object in HDFStore.
@@ -1630,7 +1630,7 @@ def _write_to_group(
1630
1630
data_columns = None ,
1631
1631
encoding = None ,
1632
1632
errors : str = "strict" ,
1633
- track_times : Optional [ bool ] = None ,
1633
+ track_times : bool = True ,
1634
1634
):
1635
1635
group = self .get_node (key )
1636
1636
@@ -4113,7 +4113,7 @@ def write(
4113
4113
dropna = False ,
4114
4114
nan_rep = None ,
4115
4115
data_columns = None ,
4116
- track_times = None ,
4116
+ track_times = True ,
4117
4117
):
4118
4118
4119
4119
if not append and self .is_exists :
@@ -4151,10 +4151,6 @@ def write(
4151
4151
4152
4152
if LooseVersion (tables_version ) >= LooseVersion ("3.4.3" ):
4153
4153
options ["track_times" ] = track_times
4154
- else :
4155
- raise ValueError (
4156
- "You cannot set track_times with table version < 3.4.3"
4157
- )
4158
4154
4159
4155
# create the table
4160
4156
table ._handle .create_table (table .group , ** options )
Original file line number Diff line number Diff line change @@ -328,13 +328,7 @@ def create_h5_and_return_checksum(track_times):
328
328
329
329
return checksum (path )
330
330
331
- if LooseVersion (tables .__version__ ) < LooseVersion ("3.4.3" ):
332
- with pytest .raises (
333
- ValueError ,
334
- match = "You cannot set track_times with table version < 3.4.3" ,
335
- ):
336
- create_h5_and_return_checksum (track_times = False )
337
- else :
331
+ if LooseVersion (tables .__version__ ) >= LooseVersion ("3.4.3" ):
338
332
checksum_0_tt_false = create_h5_and_return_checksum (track_times = False )
339
333
checksum_0_tt_true = create_h5_and_return_checksum (track_times = True )
340
334
You can’t perform that action at this time.
0 commit comments