tonic 1.4.4.dev45__tar.gz → 1.5.1.dev13__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/AUTHORS +1 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/ChangeLog +16 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/PKG-INFO +1 -1
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/dataset_utils.py +13 -7
- tonic-1.5.1.dev13/test/torch_requirements.txt +5 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/dataset.py +1 -1
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/download_utils.py +3 -5
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic.egg-info/PKG-INFO +1 -1
- tonic-1.5.1.dev13/tonic.egg-info/pbr.json +1 -0
- tonic-1.4.4.dev45/test/torch_requirements.txt +0 -5
- tonic-1.4.4.dev45/tonic.egg-info/pbr.json +0 -1
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/.binder/requirements.txt +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/.coveragerc +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/.github/workflows/ci-pipeline.yml +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/.pre-commit-config.yaml +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/.readthedocs.yml +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/LICENSE.txt +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/MANIFEST.in +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/README.md +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/Makefile +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/event-cameras/eventstream.png +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/event-cameras/framestream.png +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/event-cameras/receptive-fields.png +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/event-cameras/sampling-theorems.png +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/snn/neuron-models.png +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/snn/surrogates.png +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/tonic-logo-black-bg.png +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/tonic-logo-black.png +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/tonic-logo-white.png +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/tonic_favicon.png +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_templates/class_dataset.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_templates/class_transform.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/about/about.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/about/info.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/about/prototype.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/about/release_notes.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/conf.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/datasets.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/README.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/representations/README.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/representations/plot_tobinarep.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/representations/plot_toframe.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/representations/plot_toimage.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/representations/plot_totimesurface.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/representations/plot_tovoxelgrid.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/README.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_centercrop.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_crop_time.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_decimation.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_denoise.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_downsample.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_drop_event.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_drop_event_by_area.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_drop_event_by_time.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_drop_pixel.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_event_downsampling.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_merge_polarities.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_random_crop.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_random_flip_lr.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_random_flip_ud.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_random_time_reversal.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_refractory_period.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_spatial_jitter.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_time_jitter.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_uniform_noise.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/getting_involved/communication_channels.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/getting_involved/contribute.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/getting_involved/getting_involved.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/getting_started/getting_started.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/getting_started/install.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/getting_started/nmnist.ipynb +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/how-tos/how-tos.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/how-tos/loading-raw-events.ipynb +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/how-tos/visualizing-data.ipynb +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/how-tos/wrapping_own_data.ipynb +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/index.md +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/make.bat +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/reading_material/design_choices.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/reading_material/intro-event-cameras.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/reading_material/intro-snns.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/reading_material/reading_material.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/reading_material/training-snns.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/requirements.txt +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/transformations.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/tutorials/Aug_DiskCachDataset.ipynb +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/tutorials/audio_transforms_tutorial.ipynb +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/tutorials/batching.ipynb +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/tutorials/davis_data.ipynb +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/tutorials/fast_dataloading.ipynb +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/tutorials/large_datasets.ipynb +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/tutorials/slicing.ipynb +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/tutorials/tutorials.rst +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/requirements.txt +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/setup.cfg +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/setup.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/prototype_dataset_utils.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/requirements.txt +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_audio_augmentations.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_audio_transforms.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_aug_caching.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_caching.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_chained_transforms.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_data/sample.aedat4 +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_data/sample_aedat_header.aedat +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_data/sample_ncars.dat +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_data/sample_nmnist.bin +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_data/sample_stmnist.mat +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_datasets.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_dsec.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_io.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_prototype_datasets.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_representations.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_sliced_dataset.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_slicers.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_tonic_utils.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_transforms.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/utils.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/__init__.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/audio_augmentations.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/audio_transforms.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/cached_dataset.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/collation.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/__init__.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/asl_dvs.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/cifar10dvs.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/davisdataset.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/dsec.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/dvs_lips.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/dvsgesture.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/ebssa.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/hsd.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/mvsec.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/ncaltech101.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/nmnist.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/pokerdvs.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/s_mnist.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/threeET_eyetracking.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/tum_vie.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/visual_place_recognition.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/__init__.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/crop.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/decimate.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/denoise.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/drop_event.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/drop_pixel.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/event_downsampling.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/refractory_period.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/spatial_jitter.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/time_jitter.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/time_skew.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/to_averaged_timesurface.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/to_bina_rep.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/to_frame.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/to_timesurface.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/to_voxel_grid.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/uniform_noise.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/io.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/README.md +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/__init__.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/datasets/__init__.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/datasets/ncars.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/datasets/nmnist.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/datasets/prophesee.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/datasets/stmnist.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/datasets/utils/__init__.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/datasets/utils/_dataset.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/datasets/utils/_utils.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/slicers.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/sliced_dataset.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/slicers.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/transforms.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/utils.py +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic-logo-padded.png +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic.egg-info/SOURCES.txt +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic.egg-info/dependency_links.txt +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic.egg-info/not-zip-safe +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic.egg-info/requires.txt +0 -0
- {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic.egg-info/top_level.txt +0 -0
|
@@ -2,6 +2,7 @@ Anindya Ghosh <anindya128@yahoo.com>
|
|
|
2
2
|
Antoine Grimaldi <antoine.grimaldi@univ-amu.fr>
|
|
3
3
|
AntoineGrimaldi <antoine.grimaldi@univ-amu.fr>
|
|
4
4
|
Carsten Nielsen <carstenlau.nielsen@uzh.ch>
|
|
5
|
+
Danny Rosen <dannyrosen@mac.mynetworksettings.com>
|
|
5
6
|
Dhia Zerrari <dhia.zerrari@outlook.com>
|
|
6
7
|
Elias Martinsson <131291250+e-martinsson@users.noreply.github.com>
|
|
7
8
|
Fabrizio Ottati <45739782+fabhertz95@users.noreply.github.com>
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
CHANGES
|
|
2
2
|
=======
|
|
3
3
|
|
|
4
|
+
* updated pytorch versions
|
|
5
|
+
* reverted pre-commit file
|
|
6
|
+
* reverted pre-commit file
|
|
7
|
+
* reverted pre-commit file
|
|
8
|
+
* reverted pre-commit file
|
|
9
|
+
* reverted pre-commit file
|
|
10
|
+
* added max version to torchdata
|
|
11
|
+
* formatted dataset\_utils
|
|
12
|
+
* commmented test skip
|
|
13
|
+
* fixed commented test
|
|
14
|
+
* removed testing print
|
|
15
|
+
* fixed bug with inclusion of ~ in path
|
|
16
|
+
|
|
17
|
+
v1.5.0
|
|
18
|
+
------
|
|
19
|
+
|
|
4
20
|
* Update ci-pipeline.yml
|
|
5
21
|
* add reset\_time parameter to SliceByTime slicer
|
|
6
22
|
* add start\_time and end\_time to ToFrame
|
|
@@ -2,14 +2,18 @@ import shutil
|
|
|
2
2
|
import unittest
|
|
3
3
|
from typing import Any, Dict, Union
|
|
4
4
|
from unittest.mock import patch
|
|
5
|
-
|
|
5
|
+
import pytest
|
|
6
6
|
import numpy as np
|
|
7
|
+
import os
|
|
8
|
+
|
|
9
|
+
# Location of the files to be saved and extracted by the datasets during testing
|
|
10
|
+
TEST_LOCATION_ON_SYSTEM = "~/../../tmp"
|
|
11
|
+
TEST_LOCATION_ON_SYSTEM = os.path.expanduser(TEST_LOCATION_ON_SYSTEM)
|
|
7
12
|
|
|
8
13
|
|
|
9
14
|
class DatasetTestCase(unittest.TestCase):
|
|
10
15
|
DATASET_CLASS = None
|
|
11
16
|
FEATURE_TYPES = None
|
|
12
|
-
|
|
13
17
|
_CHECK_FUNCTIONS = {"check_md5", "check_integrity", "check_exists"}
|
|
14
18
|
_DOWNLOAD_EXTRACT_FUNCTIONS = {
|
|
15
19
|
"download_url",
|
|
@@ -41,8 +45,7 @@ class DatasetTestCase(unittest.TestCase):
|
|
|
41
45
|
)
|
|
42
46
|
|
|
43
47
|
def create_dataset(self, inject_fake_data: bool = True, **kwargs: Any):
|
|
44
|
-
|
|
45
|
-
info = self._inject_fake_data(tmpdir)
|
|
48
|
+
info = self._inject_fake_data(TEST_LOCATION_ON_SYSTEM)
|
|
46
49
|
|
|
47
50
|
if inject_fake_data:
|
|
48
51
|
with patch.object(self.DATASET_CLASS, "_check_exists", return_value=True):
|
|
@@ -81,7 +84,7 @@ class DatasetTestCase(unittest.TestCase):
|
|
|
81
84
|
assert len(data) == len(self.FEATURE_TYPES)
|
|
82
85
|
assert len(target) == len(self.TARGET_TYPES)
|
|
83
86
|
|
|
84
|
-
for
|
|
87
|
+
for data_piece, feature_type in zip(data, self.FEATURE_TYPES):
|
|
85
88
|
if type(data_piece) == np.ndarray:
|
|
86
89
|
assert data_piece.dtype == feature_type
|
|
87
90
|
else:
|
|
@@ -93,6 +96,9 @@ class DatasetTestCase(unittest.TestCase):
|
|
|
93
96
|
|
|
94
97
|
@classmethod
|
|
95
98
|
def setUpClass(cls):
|
|
96
|
-
cls.KWARGS.update({"save_to":
|
|
97
|
-
shutil.rmtree(
|
|
99
|
+
cls.KWARGS.update({"save_to": TEST_LOCATION_ON_SYSTEM})
|
|
100
|
+
shutil.rmtree(
|
|
101
|
+
f"{TEST_LOCATION_ON_SYSTEM}/" + cls.DATASET_CLASS.__name__,
|
|
102
|
+
ignore_errors=True,
|
|
103
|
+
)
|
|
98
104
|
super().setUpClass()
|
|
@@ -18,7 +18,7 @@ class Dataset:
|
|
|
18
18
|
target_transform: Optional[Callable] = None,
|
|
19
19
|
transforms: Optional[Callable] = None,
|
|
20
20
|
):
|
|
21
|
-
self.location_on_system = os.path.join(save_to, self.__class__.__name__)
|
|
21
|
+
self.location_on_system = os.path.join(os.path.expanduser(save_to), self.__class__.__name__)
|
|
22
22
|
self.transform = transform
|
|
23
23
|
self.target_transform = target_transform
|
|
24
24
|
self.transforms = transforms
|
|
@@ -159,9 +159,9 @@ def _extract_zip(from_path: str, to_path: str, compression: Optional[str]) -> No
|
|
|
159
159
|
with zipfile.ZipFile(
|
|
160
160
|
from_path,
|
|
161
161
|
"r",
|
|
162
|
-
compression=
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
compression=(
|
|
163
|
+
_ZIP_COMPRESSION_MAP[compression] if compression else zipfile.ZIP_STORED
|
|
164
|
+
),
|
|
165
165
|
) as zip:
|
|
166
166
|
zip.extractall(to_path)
|
|
167
167
|
|
|
@@ -313,12 +313,10 @@ def download_and_extract_archive(
|
|
|
313
313
|
md5: Optional[str] = None,
|
|
314
314
|
remove_finished: bool = False,
|
|
315
315
|
) -> None:
|
|
316
|
-
download_root = os.path.expanduser(download_root)
|
|
317
316
|
if extract_root is None:
|
|
318
317
|
extract_root = download_root
|
|
319
318
|
if not filename:
|
|
320
319
|
filename = os.path.basename(url)
|
|
321
|
-
|
|
322
320
|
download_url(url, download_root, filename, md5)
|
|
323
321
|
|
|
324
322
|
archive = os.path.join(download_root, filename)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"git_version": "82ff84c", "is_release": false}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"git_version": "c62db86", "is_release": false}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_drop_event_by_area.py
RENAMED
|
File without changes
|
{tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_drop_event_by_time.py
RENAMED
|
File without changes
|
|
File without changes
|
{tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_event_downsampling.py
RENAMED
|
File without changes
|
{tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_merge_polarities.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_random_time_reversal.py
RENAMED
|
File without changes
|
{tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_refractory_period.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|