File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -109,10 +109,14 @@ def __init__(
109109 fs , path = fsspec .core .url_to_fs (h5f , ** (storage_options or {}))
110110 self .input_file = self ._closers .enter_context (fs .open (path , "rb" ))
111111 url = h5f
112- self ._h5f = self ._closers .enter_context (h5py .File (self .input_file , mode = "r" ))
112+ self ._h5f = self ._closers .enter_context (
113+ h5py .File (self .input_file , mode = "r" )
114+ )
113115 elif isinstance (h5f , io .IOBase ):
114116 self .input_file = h5f
115- self ._h5f = self ._closers .enter_context (h5py .File (self .input_file , mode = "r" ))
117+ self ._h5f = self ._closers .enter_context (
118+ h5py .File (self .input_file , mode = "r" )
119+ )
116120 elif isinstance (h5f , (h5py .File , h5py .Group )):
117121 # assume h5py object (File or group/dataset)
118122 self ._h5f = h5f
You can’t perform that action at this time.
0 commit comments