diff --git a/README.md b/README.md index 4b8df9a..695e254 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,12 @@ datLoader.load_events('../example_data/dat/cars/obj_004414_td.dat') ``` It also make the process of loading and iterating HDF5 files easier. ```py -from aertb.core import HDF5FileIterator +from aertb.core import HDF5File -trainIterator = HDF5FileIterator('myfile.h5', groups='all', n_samples='all', rand=-1) +dataset_train = HDF5File('TRAIN.h5') +train_iterator = dataset_train.iterator(n_samples_group=10, rand=23) -for sample in tqdm(trainIterator): +for sample in tqdm(train_iterator): # do something with sample.events, sample.label or sample.name ``` The library also includes a command line interface for converting files from a given extension to hdf5, as well as gif diff --git a/example_data/example.gif b/example_data/example.gif deleted file mode 100644 index 934ed8c..0000000 Binary files a/example_data/example.gif and /dev/null differ