File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -370,10 +370,10 @@ def _to_hdf5(self, x5_root):
370370
371371 raise NotImplementedError
372372
373- def read_x5 (x5_root ):
373+ def read_x5 (self , x5_root ):
374374 variables = {}
375375 with h5py .File (x5_root , "r" ) as f :
376- f .visititems (lambda name , x5_root : _from_hdf5 (name , x5_root , variables ))
376+ f .visititems (lambda filename , x5_root : self . _from_hdf5 (filename , x5_root , variables ))
377377
378378 _transform = variables ["TransformGroup/0/Transform" ]
379379 _inverse = variables ["TransformGroup/0/Inverse" ]
@@ -382,7 +382,7 @@ def read_x5(x5_root):
382382
383383 return _transform , _inverse , _size , _map
384384
385- def _from_hdf5 (name , x5_root , storage ):
385+ def _from_hdf5 (self , name , x5_root , storage ):
386386 if isinstance (x5_root , h5py .Dataset ):
387387 storage [name ] = {
388388 'type' : 'dataset' ,
You can’t perform that action at this time.
0 commit comments