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):
370
370
371
371
raise NotImplementedError
372
372
373
- def read_x5 (x5_root ):
373
+ def read_x5 (self , x5_root ):
374
374
variables = {}
375
375
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 ))
377
377
378
378
_transform = variables ["TransformGroup/0/Transform" ]
379
379
_inverse = variables ["TransformGroup/0/Inverse" ]
@@ -382,7 +382,7 @@ def read_x5(x5_root):
382
382
383
383
return _transform , _inverse , _size , _map
384
384
385
- def _from_hdf5 (name , x5_root , storage ):
385
+ def _from_hdf5 (self , name , x5_root , storage ):
386
386
if isinstance (x5_root , h5py .Dataset ):
387
387
storage [name ] = {
388
388
'type' : 'dataset' ,
You can’t perform that action at this time.
0 commit comments