File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2881,10 +2881,10 @@ def __getstate__(self):
2881
2881
return self .asdict ()
2882
2882
2883
2883
@classmethod
2884
- def load (cls , file_or_path , skip_tables = False ):
2884
+ def load (cls , file_or_path , * , skip_tables = False ):
2885
2885
file , local_file = util .convert_file_like_to_open_file (file_or_path , "rb" )
2886
2886
ll_tc = _tskit .TableCollection (1 )
2887
- ll_tc .load (file , skip_tables = bool ( skip_tables ) )
2887
+ ll_tc .load (file , skip_tables = skip_tables )
2888
2888
tc = TableCollection (1 )
2889
2889
tc ._ll_tables = ll_tc
2890
2890
return tc
Original file line number Diff line number Diff line change @@ -2845,7 +2845,7 @@ def generate_random_binary(
2845
2845
)
2846
2846
2847
2847
2848
- def load (file , skip_tables = False ):
2848
+ def load (file , * , skip_tables = False ):
2849
2849
"""
2850
2850
Loads a tree sequence from the specified file object or path. The file must be in the
2851
2851
:ref:`tree sequence file format <sec_tree_sequence_file_format>` produced by the
@@ -3510,11 +3510,11 @@ def aslist(self, **kwargs):
3510
3510
return [tree .copy () for tree in self .trees (** kwargs )]
3511
3511
3512
3512
@classmethod
3513
- def load (cls , file_or_path , skip_tables = False ):
3513
+ def load (cls , file_or_path , * , skip_tables = False ):
3514
3514
file , local_file = util .convert_file_like_to_open_file (file_or_path , "rb" )
3515
3515
try :
3516
3516
ts = _tskit .TreeSequence ()
3517
- ts .load (file , skip_tables = bool ( skip_tables ) )
3517
+ ts .load (file , skip_tables = skip_tables )
3518
3518
return TreeSequence (ts )
3519
3519
except exceptions .FileFormatError as e :
3520
3520
# TODO Fix this for new file semantics
You can’t perform that action at this time.
0 commit comments