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.
Files changed (178) hide show
  1. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/AUTHORS +1 -0
  2. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/ChangeLog +16 -0
  3. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/PKG-INFO +1 -1
  4. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/dataset_utils.py +13 -7
  5. tonic-1.5.1.dev13/test/torch_requirements.txt +5 -0
  6. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/dataset.py +1 -1
  7. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/download_utils.py +3 -5
  8. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic.egg-info/PKG-INFO +1 -1
  9. tonic-1.5.1.dev13/tonic.egg-info/pbr.json +1 -0
  10. tonic-1.4.4.dev45/test/torch_requirements.txt +0 -5
  11. tonic-1.4.4.dev45/tonic.egg-info/pbr.json +0 -1
  12. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/.binder/requirements.txt +0 -0
  13. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/.coveragerc +0 -0
  14. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/.github/workflows/ci-pipeline.yml +0 -0
  15. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/.pre-commit-config.yaml +0 -0
  16. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/.readthedocs.yml +0 -0
  17. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/LICENSE.txt +0 -0
  18. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/MANIFEST.in +0 -0
  19. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/README.md +0 -0
  20. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/Makefile +0 -0
  21. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/event-cameras/eventstream.png +0 -0
  22. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/event-cameras/framestream.png +0 -0
  23. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/event-cameras/receptive-fields.png +0 -0
  24. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/event-cameras/sampling-theorems.png +0 -0
  25. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/snn/neuron-models.png +0 -0
  26. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/snn/surrogates.png +0 -0
  27. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/tonic-logo-black-bg.png +0 -0
  28. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/tonic-logo-black.png +0 -0
  29. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/tonic-logo-white.png +0 -0
  30. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_static/tonic_favicon.png +0 -0
  31. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_templates/class_dataset.rst +0 -0
  32. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/_templates/class_transform.rst +0 -0
  33. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/about/about.rst +0 -0
  34. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/about/info.rst +0 -0
  35. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/about/prototype.rst +0 -0
  36. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/about/release_notes.rst +0 -0
  37. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/conf.py +0 -0
  38. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/datasets.rst +0 -0
  39. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/README.rst +0 -0
  40. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/representations/README.rst +0 -0
  41. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/representations/plot_tobinarep.py +0 -0
  42. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/representations/plot_toframe.py +0 -0
  43. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/representations/plot_toimage.py +0 -0
  44. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/representations/plot_totimesurface.py +0 -0
  45. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/representations/plot_tovoxelgrid.py +0 -0
  46. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/README.rst +0 -0
  47. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_centercrop.py +0 -0
  48. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_crop_time.py +0 -0
  49. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_decimation.py +0 -0
  50. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_denoise.py +0 -0
  51. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_downsample.py +0 -0
  52. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_drop_event.py +0 -0
  53. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_drop_event_by_area.py +0 -0
  54. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_drop_event_by_time.py +0 -0
  55. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_drop_pixel.py +0 -0
  56. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_event_downsampling.py +0 -0
  57. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_merge_polarities.py +0 -0
  58. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_random_crop.py +0 -0
  59. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_random_flip_lr.py +0 -0
  60. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_random_flip_ud.py +0 -0
  61. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_random_time_reversal.py +0 -0
  62. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_refractory_period.py +0 -0
  63. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_spatial_jitter.py +0 -0
  64. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_time_jitter.py +0 -0
  65. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/gallery/transformations/plot_uniform_noise.py +0 -0
  66. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/getting_involved/communication_channels.rst +0 -0
  67. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/getting_involved/contribute.rst +0 -0
  68. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/getting_involved/getting_involved.rst +0 -0
  69. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/getting_started/getting_started.rst +0 -0
  70. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/getting_started/install.rst +0 -0
  71. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/getting_started/nmnist.ipynb +0 -0
  72. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/how-tos/how-tos.rst +0 -0
  73. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/how-tos/loading-raw-events.ipynb +0 -0
  74. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/how-tos/visualizing-data.ipynb +0 -0
  75. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/how-tos/wrapping_own_data.ipynb +0 -0
  76. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/index.md +0 -0
  77. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/make.bat +0 -0
  78. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/reading_material/design_choices.rst +0 -0
  79. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/reading_material/intro-event-cameras.rst +0 -0
  80. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/reading_material/intro-snns.rst +0 -0
  81. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/reading_material/reading_material.rst +0 -0
  82. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/reading_material/training-snns.rst +0 -0
  83. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/requirements.txt +0 -0
  84. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/transformations.rst +0 -0
  85. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/tutorials/Aug_DiskCachDataset.ipynb +0 -0
  86. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/tutorials/audio_transforms_tutorial.ipynb +0 -0
  87. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/tutorials/batching.ipynb +0 -0
  88. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/tutorials/davis_data.ipynb +0 -0
  89. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/tutorials/fast_dataloading.ipynb +0 -0
  90. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/tutorials/large_datasets.ipynb +0 -0
  91. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/tutorials/slicing.ipynb +0 -0
  92. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/docs/tutorials/tutorials.rst +0 -0
  93. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/requirements.txt +0 -0
  94. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/setup.cfg +0 -0
  95. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/setup.py +0 -0
  96. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/prototype_dataset_utils.py +0 -0
  97. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/requirements.txt +0 -0
  98. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_audio_augmentations.py +0 -0
  99. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_audio_transforms.py +0 -0
  100. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_aug_caching.py +0 -0
  101. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_caching.py +0 -0
  102. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_chained_transforms.py +0 -0
  103. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_data/sample.aedat4 +0 -0
  104. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_data/sample_aedat_header.aedat +0 -0
  105. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_data/sample_ncars.dat +0 -0
  106. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_data/sample_nmnist.bin +0 -0
  107. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_data/sample_stmnist.mat +0 -0
  108. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_datasets.py +0 -0
  109. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_dsec.py +0 -0
  110. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_io.py +0 -0
  111. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_prototype_datasets.py +0 -0
  112. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_representations.py +0 -0
  113. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_sliced_dataset.py +0 -0
  114. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_slicers.py +0 -0
  115. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_tonic_utils.py +0 -0
  116. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/test_transforms.py +0 -0
  117. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/test/utils.py +0 -0
  118. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/__init__.py +0 -0
  119. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/audio_augmentations.py +0 -0
  120. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/audio_transforms.py +0 -0
  121. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/cached_dataset.py +0 -0
  122. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/collation.py +0 -0
  123. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/__init__.py +0 -0
  124. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/asl_dvs.py +0 -0
  125. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/cifar10dvs.py +0 -0
  126. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/davisdataset.py +0 -0
  127. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/dsec.py +0 -0
  128. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/dvs_lips.py +0 -0
  129. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/dvsgesture.py +0 -0
  130. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/ebssa.py +0 -0
  131. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/hsd.py +0 -0
  132. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/mvsec.py +0 -0
  133. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/ncaltech101.py +0 -0
  134. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/nmnist.py +0 -0
  135. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/pokerdvs.py +0 -0
  136. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/s_mnist.py +0 -0
  137. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/threeET_eyetracking.py +0 -0
  138. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/tum_vie.py +0 -0
  139. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/datasets/visual_place_recognition.py +0 -0
  140. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/__init__.py +0 -0
  141. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/crop.py +0 -0
  142. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/decimate.py +0 -0
  143. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/denoise.py +0 -0
  144. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/drop_event.py +0 -0
  145. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/drop_pixel.py +0 -0
  146. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/event_downsampling.py +0 -0
  147. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/refractory_period.py +0 -0
  148. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/spatial_jitter.py +0 -0
  149. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/time_jitter.py +0 -0
  150. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/time_skew.py +0 -0
  151. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/to_averaged_timesurface.py +0 -0
  152. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/to_bina_rep.py +0 -0
  153. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/to_frame.py +0 -0
  154. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/to_timesurface.py +0 -0
  155. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/to_voxel_grid.py +0 -0
  156. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/functional/uniform_noise.py +0 -0
  157. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/io.py +0 -0
  158. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/README.md +0 -0
  159. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/__init__.py +0 -0
  160. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/datasets/__init__.py +0 -0
  161. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/datasets/ncars.py +0 -0
  162. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/datasets/nmnist.py +0 -0
  163. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/datasets/prophesee.py +0 -0
  164. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/datasets/stmnist.py +0 -0
  165. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/datasets/utils/__init__.py +0 -0
  166. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/datasets/utils/_dataset.py +0 -0
  167. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/datasets/utils/_utils.py +0 -0
  168. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/prototype/slicers.py +0 -0
  169. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/sliced_dataset.py +0 -0
  170. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/slicers.py +0 -0
  171. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/transforms.py +0 -0
  172. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic/utils.py +0 -0
  173. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic-logo-padded.png +0 -0
  174. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic.egg-info/SOURCES.txt +0 -0
  175. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic.egg-info/dependency_links.txt +0 -0
  176. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic.egg-info/not-zip-safe +0 -0
  177. {tonic-1.4.4.dev45 → tonic-1.5.1.dev13}/tonic.egg-info/requires.txt +0 -0
  178. {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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tonic
3
- Version: 1.4.4.dev45
3
+ Version: 1.5.1.dev13
4
4
  Summary: Neuromorphic datasets and transformations.
5
5
  Home-page: UNKNOWN
6
6
  Author: The Neuromorphs of Telluride
@@ -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
- tmpdir = "/tmp/"
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 (data_piece, feature_type) in zip(data, self.FEATURE_TYPES):
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": "/tmp"})
97
- shutil.rmtree("/tmp/" + cls.DATASET_CLASS.__name__, ignore_errors=True)
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()
@@ -0,0 +1,5 @@
1
+ --index-url https://download.pytorch.org/whl/cpu
2
+ torch==2.3.0
3
+ torchaudio==2.3.0
4
+ torchvision==0.18.0
5
+ torchdata<=0.8.0
@@ -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=_ZIP_COMPRESSION_MAP[compression]
163
- if compression
164
- else zipfile.ZIP_STORED,
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tonic
3
- Version: 1.4.4.dev45
3
+ Version: 1.5.1.dev13
4
4
  Summary: Neuromorphic datasets and transformations.
5
5
  Home-page: UNKNOWN
6
6
  Author: The Neuromorphs of Telluride
@@ -0,0 +1 @@
1
+ {"git_version": "82ff84c", "is_release": false}
@@ -1,5 +0,0 @@
1
- --index-url https://download.pytorch.org/whl/cpu
2
- torch==2.1.0
3
- torchaudio==2.1.0
4
- torchvision==0.16.0
5
- torchdata
@@ -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