acoular 24.3__tar.gz → 24.5__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 (247) hide show
  1. acoular-24.5/LICENSE +28 -0
  2. {acoular-24.3 → acoular-24.5}/PKG-INFO +45 -46
  3. {acoular-24.3 → acoular-24.5}/README.md +24 -15
  4. acoular-24.5/acoular/__init__.py +128 -0
  5. {acoular-24.3 → acoular-24.5}/acoular/calib.py +29 -38
  6. {acoular-24.3 → acoular-24.5}/acoular/configuration.py +116 -73
  7. acoular-24.5/acoular/demo/__init__.py +13 -0
  8. acoular-24.5/acoular/demo/acoular_demo.py +105 -0
  9. {acoular-24.3 → acoular-24.5}/acoular/environments.py +265 -262
  10. {acoular-24.3 → acoular-24.5}/acoular/fastFuncs.py +361 -191
  11. {acoular-24.3 → acoular-24.5}/acoular/fbeamform.py +1460 -1404
  12. {acoular-24.3 → acoular-24.5}/acoular/grids.py +501 -545
  13. {acoular-24.3 → acoular-24.5}/acoular/h5cache.py +50 -59
  14. acoular-24.5/acoular/h5files.py +221 -0
  15. acoular-24.5/acoular/internal.py +25 -0
  16. acoular-24.5/acoular/microphones.py +139 -0
  17. acoular-24.5/acoular/sdinput.py +113 -0
  18. {acoular-24.3 → acoular-24.5}/acoular/signals.py +167 -179
  19. acoular-24.5/acoular/sources.py +1549 -0
  20. {acoular-24.3 → acoular-24.5}/acoular/spectra.py +349 -359
  21. acoular-24.5/acoular/tbeamform.py +813 -0
  22. acoular-24.5/acoular/tfastfuncs.py +252 -0
  23. acoular-24.5/acoular/tools/__init__.py +25 -0
  24. acoular-24.5/acoular/tools/aiaa.py +186 -0
  25. acoular-24.5/acoular/tools/helpers.py +189 -0
  26. acoular-24.5/acoular/tools/metrics.py +165 -0
  27. {acoular-24.3 → acoular-24.5}/acoular/tprocess.py +1201 -1143
  28. acoular-24.5/acoular/traitsviews.py +533 -0
  29. {acoular-24.3 → acoular-24.5}/acoular/trajectory.py +50 -52
  30. acoular-24.5/acoular/version.py +8 -0
  31. acoular-24.5/acoular/xml/minidsp_uma-16.xml +20 -0
  32. acoular-24.3/acoular/xml/minidsp_uma16.xml → acoular-24.5/acoular/xml/minidsp_uma-16_mirrored.xml +3 -0
  33. {acoular-24.3 → acoular-24.5}/pyproject.toml +52 -13
  34. acoular-24.3/.github/workflows/build_docs.yml +0 -43
  35. acoular-24.3/.github/workflows/python-package.yml +0 -45
  36. acoular-24.3/.gitlab-ci.yml +0 -46
  37. acoular-24.3/.travis.yml +0 -142
  38. acoular-24.3/.zenodo.json +0 -47
  39. acoular-24.3/LICENSE +0 -29
  40. acoular-24.3/MANIFEST.in +0 -5
  41. acoular-24.3/acoular/__init__.py +0 -60
  42. acoular-24.3/acoular/demo/__init__.py +0 -7
  43. acoular-24.3/acoular/demo/acoular_demo.py +0 -80
  44. acoular-24.3/acoular/fileimport.py +0 -380
  45. acoular-24.3/acoular/h5files.py +0 -204
  46. acoular-24.3/acoular/internal.py +0 -26
  47. acoular-24.3/acoular/microphones.py +0 -135
  48. acoular-24.3/acoular/nidaqimport.py +0 -273
  49. acoular-24.3/acoular/sdinput.py +0 -118
  50. acoular-24.3/acoular/sources.py +0 -1424
  51. acoular-24.3/acoular/tbeamform.py +0 -812
  52. acoular-24.3/acoular/tests/reference_data/BeamformerBase.npy +0 -0
  53. acoular-24.3/acoular/tests/reference_data/BeamformerBaseFalse1.npy +0 -0
  54. acoular-24.3/acoular/tests/reference_data/BeamformerBaseFalse2.npy +0 -0
  55. acoular-24.3/acoular/tests/reference_data/BeamformerBaseFalse3.npy +0 -0
  56. acoular-24.3/acoular/tests/reference_data/BeamformerBaseFalse4.npy +0 -0
  57. acoular-24.3/acoular/tests/reference_data/BeamformerBaseTrue1.npy +0 -0
  58. acoular-24.3/acoular/tests/reference_data/BeamformerBaseTrue2.npy +0 -0
  59. acoular-24.3/acoular/tests/reference_data/BeamformerBaseTrue3.npy +0 -0
  60. acoular-24.3/acoular/tests/reference_data/BeamformerBaseTrue4.npy +0 -0
  61. acoular-24.3/acoular/tests/reference_data/BeamformerCMFLassoLarsBIC.npy +0 -0
  62. acoular-24.3/acoular/tests/reference_data/BeamformerCMFNNLS.npy +0 -0
  63. acoular-24.3/acoular/tests/reference_data/BeamformerCapon.npy +0 -0
  64. acoular-24.3/acoular/tests/reference_data/BeamformerClean.npy +0 -0
  65. acoular-24.3/acoular/tests/reference_data/BeamformerCleansc.npy +0 -0
  66. acoular-24.3/acoular/tests/reference_data/BeamformerCleant.npy +0 -0
  67. acoular-24.3/acoular/tests/reference_data/BeamformerCleantSq.npy +0 -0
  68. acoular-24.3/acoular/tests/reference_data/BeamformerCleantSqTraj.npy +0 -0
  69. acoular-24.3/acoular/tests/reference_data/BeamformerCleantTraj.npy +0 -0
  70. acoular-24.3/acoular/tests/reference_data/BeamformerDamas.npy +0 -0
  71. acoular-24.3/acoular/tests/reference_data/BeamformerDamasPlus.npy +0 -0
  72. acoular-24.3/acoular/tests/reference_data/BeamformerEig.npy +0 -0
  73. acoular-24.3/acoular/tests/reference_data/BeamformerEigFalse1.npy +0 -0
  74. acoular-24.3/acoular/tests/reference_data/BeamformerEigFalse2.npy +0 -0
  75. acoular-24.3/acoular/tests/reference_data/BeamformerEigFalse3.npy +0 -0
  76. acoular-24.3/acoular/tests/reference_data/BeamformerEigFalse4.npy +0 -0
  77. acoular-24.3/acoular/tests/reference_data/BeamformerEigTrue1.npy +0 -0
  78. acoular-24.3/acoular/tests/reference_data/BeamformerEigTrue2.npy +0 -0
  79. acoular-24.3/acoular/tests/reference_data/BeamformerEigTrue3.npy +0 -0
  80. acoular-24.3/acoular/tests/reference_data/BeamformerEigTrue4.npy +0 -0
  81. acoular-24.3/acoular/tests/reference_data/BeamformerFunctional.npy +0 -0
  82. acoular-24.3/acoular/tests/reference_data/BeamformerGIB.npy +0 -0
  83. acoular-24.3/acoular/tests/reference_data/BeamformerGridlessOrth.npy +0 -0
  84. acoular-24.3/acoular/tests/reference_data/BeamformerMusic.npy +0 -0
  85. acoular-24.3/acoular/tests/reference_data/BeamformerOrth.npy +0 -0
  86. acoular-24.3/acoular/tests/reference_data/BeamformerSODIX.npy +0 -0
  87. acoular-24.3/acoular/tests/reference_data/BeamformerTime.npy +0 -0
  88. acoular-24.3/acoular/tests/reference_data/BeamformerTimeSq.npy +0 -0
  89. acoular-24.3/acoular/tests/reference_data/BeamformerTimeSqTraj.npy +0 -0
  90. acoular-24.3/acoular/tests/reference_data/BeamformerTimeTraj.npy +0 -0
  91. acoular-24.3/acoular/tests/reference_data/Environment.npy +0 -0
  92. acoular-24.3/acoular/tests/reference_data/Example1_numerical_values_testsum.h5 +0 -0
  93. acoular-24.3/acoular/tests/reference_data/FiltFiltOctave__.npy +0 -0
  94. acoular-24.3/acoular/tests/reference_data/FiltFiltOctave_band_100_0_fraction_Thirdoctave_.npy +0 -0
  95. acoular-24.3/acoular/tests/reference_data/FiltFreqWeight_weight_A_.npy +0 -0
  96. acoular-24.3/acoular/tests/reference_data/FiltFreqWeight_weight_C_.npy +0 -0
  97. acoular-24.3/acoular/tests/reference_data/FiltFreqWeight_weight_Z_.npy +0 -0
  98. acoular-24.3/acoular/tests/reference_data/FiltOctave__.npy +0 -0
  99. acoular-24.3/acoular/tests/reference_data/FiltOctave_band_100_0_fraction_Thirdoctave_.npy +0 -0
  100. acoular-24.3/acoular/tests/reference_data/Filter__.npy +0 -0
  101. acoular-24.3/acoular/tests/reference_data/GeneralFlowEnvironment.npy +0 -0
  102. acoular-24.3/acoular/tests/reference_data/OctaveFilterBank__.npy +0 -0
  103. acoular-24.3/acoular/tests/reference_data/OpenJet.npy +0 -0
  104. acoular-24.3/acoular/tests/reference_data/PointSource.npy +0 -0
  105. acoular-24.3/acoular/tests/reference_data/PowerSpectra_csm.npy +0 -0
  106. acoular-24.3/acoular/tests/reference_data/PowerSpectra_ev.npy +0 -0
  107. acoular-24.3/acoular/tests/reference_data/RotatingFlow.npy +0 -0
  108. acoular-24.3/acoular/tests/reference_data/SlotJet.npy +0 -0
  109. acoular-24.3/acoular/tests/reference_data/TimeAverage__.npy +0 -0
  110. acoular-24.3/acoular/tests/reference_data/TimeCumAverage__.npy +0 -0
  111. acoular-24.3/acoular/tests/reference_data/TimeExpAverage_weight_F_.npy +0 -0
  112. acoular-24.3/acoular/tests/reference_data/TimeExpAverage_weight_I_.npy +0 -0
  113. acoular-24.3/acoular/tests/reference_data/TimeExpAverage_weight_S_.npy +0 -0
  114. acoular-24.3/acoular/tests/reference_data/TimeInOut__.npy +0 -0
  115. acoular-24.3/acoular/tests/reference_data/TimePower__.npy +0 -0
  116. acoular-24.3/acoular/tests/reference_data/TimeReverse__.npy +0 -0
  117. acoular-24.3/acoular/tests/reference_data/UniformFlowEnvironment.npy +0 -0
  118. acoular-24.3/acoular/tests/reference_data/beamformer_traj_time_data.h5 +0 -0
  119. acoular-24.3/acoular/tests/run_tests.sh +0 -18
  120. acoular-24.3/acoular/tests/run_tests_osx.sh +0 -16
  121. acoular-24.3/acoular/tests/test.npy +0 -0
  122. acoular-24.3/acoular/tests/test_beamformer_results.py +0 -213
  123. acoular-24.3/acoular/tests/test_classes.py +0 -60
  124. acoular-24.3/acoular/tests/test_digest.py +0 -125
  125. acoular-24.3/acoular/tests/test_environments.py +0 -73
  126. acoular-24.3/acoular/tests/test_example1.py +0 -124
  127. acoular-24.3/acoular/tests/test_grid.py +0 -92
  128. acoular-24.3/acoular/tests/test_integrate.py +0 -102
  129. acoular-24.3/acoular/tests/test_signals.py +0 -60
  130. acoular-24.3/acoular/tests/test_sources.py +0 -65
  131. acoular-24.3/acoular/tests/test_spectra.py +0 -38
  132. acoular-24.3/acoular/tests/test_timecache.py +0 -35
  133. acoular-24.3/acoular/tests/test_tprocess.py +0 -90
  134. acoular-24.3/acoular/tests/test_traj_beamformer_results.py +0 -164
  135. acoular-24.3/acoular/tests/unsupported/SpeedComparison/OvernightTestcasesBeamformer_nMics32_nGridPoints100_nFreqs4_nTrials10.png +0 -0
  136. acoular-24.3/acoular/tests/unsupported/SpeedComparison/cythonBeamformer.pyx +0 -237
  137. acoular-24.3/acoular/tests/unsupported/SpeedComparison/mainForCython.py +0 -103
  138. acoular-24.3/acoular/tests/unsupported/SpeedComparison/mainForParallelJit.py +0 -143
  139. acoular-24.3/acoular/tests/unsupported/SpeedComparison/setupCythonOpenMP.py +0 -63
  140. acoular-24.3/acoular/tests/unsupported/SpeedComparison/sharedFunctions.py +0 -153
  141. acoular-24.3/acoular/tests/unsupported/SpeedComparison/timeOverNMics_AllImportantMethods.png +0 -0
  142. acoular-24.3/acoular/tests/unsupported/SpeedComparison/timeOverNMics_faverage.png +0 -0
  143. acoular-24.3/acoular/tests/unsupported/SpeedComparison/vglOptimierungFAverage.py +0 -204
  144. acoular-24.3/acoular/tests/unsupported/SpeedComparison/vglOptimierungGaussSeidel.py +0 -182
  145. acoular-24.3/acoular/tests/unsupported/SpeedComparison/vglOptimierungR_BEAMFULL_INVERSE.py +0 -764
  146. acoular-24.3/acoular/tests/unsupported/SpeedComparison/vglOptimierungR_BEAM_OS.py +0 -231
  147. acoular-24.3/acoular/tests/unsupported/SpeedComparison/whatsFastestWayFor_absASquared.py +0 -48
  148. acoular-24.3/acoular/tests/unsupported/functionalBeamformer.py +0 -123
  149. acoular-24.3/acoular/tests/unsupported/precisionTest.py +0 -153
  150. acoular-24.3/acoular/tests/unsupported/validationOfBeamformerFuncsPOSTAcoularIntegration.py +0 -254
  151. acoular-24.3/acoular/tests/unsupported/validationOfBeamformerFuncsPREeAcoularIntegration.py +0 -531
  152. acoular-24.3/acoular/tfastfuncs.py +0 -175
  153. acoular-24.3/acoular/tools.py +0 -422
  154. acoular-24.3/acoular/traitsviews.py +0 -521
  155. acoular-24.3/acoular/version.py +0 -9
  156. acoular-24.3/build_conda.sh +0 -6
  157. acoular-24.3/docs/Makefile +0 -130
  158. acoular-24.3/docs/source/_static/Acoular_logo.png +0 -0
  159. acoular-24.3/docs/source/_static/Airfoil_selfnoise_3d.png +0 -0
  160. acoular-24.3/docs/source/_static/acoular_logo.ico +0 -0
  161. acoular-24.3/docs/source/_static/airfoil_leading_edge_noise.png +0 -0
  162. acoular-24.3/docs/source/_static/no_image.png +0 -0
  163. acoular-24.3/docs/source/_static/pantograph_noise_3d.png +0 -0
  164. acoular-24.3/docs/source/_templates/autosummary/class.rst +0 -9
  165. acoular-24.3/docs/source/_templates/autosummary/module.rst +0 -5
  166. acoular-24.3/docs/source/_themes/haikuac/layout.html +0 -70
  167. acoular-24.3/docs/source/_themes/haikuac/static/alert_info_32.png +0 -0
  168. acoular-24.3/docs/source/_themes/haikuac/static/alert_warning_32.png +0 -0
  169. acoular-24.3/docs/source/_themes/haikuac/static/bg-page.png +0 -0
  170. acoular-24.3/docs/source/_themes/haikuac/static/bullet_orange.png +0 -0
  171. acoular-24.3/docs/source/_themes/haikuac/static/haikuac.css_t +0 -436
  172. acoular-24.3/docs/source/_themes/haikuac/theme.conf +0 -12
  173. acoular-24.3/docs/source/api_ref/index.rst +0 -63
  174. acoular-24.3/docs/source/conf.py +0 -233
  175. acoular-24.3/docs/source/examples/example_3D_beamforming.rst +0 -16
  176. acoular-24.3/docs/source/examples/example_3D_beamforming_1.png +0 -0
  177. acoular-24.3/docs/source/examples/example_airfoil_in_open_jet_beamforming.rst +0 -36
  178. acoular-24.3/docs/source/examples/example_airfoil_in_open_jet_beamforming_1.png +0 -0
  179. acoular-24.3/docs/source/examples/example_airfoil_in_open_jet_beamforming_2.png +0 -0
  180. acoular-24.3/docs/source/examples/example_airfoil_in_open_jet_beamforming_3.png +0 -0
  181. acoular-24.3/docs/source/examples/example_airfoil_in_open_jet_cmf.rst +0 -14
  182. acoular-24.3/docs/source/examples/example_airfoil_in_open_jet_cmf_1.png +0 -0
  183. acoular-24.3/docs/source/examples/example_airfoil_in_open_jet_steering_vectors.rst +0 -27
  184. acoular-24.3/docs/source/examples/example_airfoil_in_open_jet_steering_vectors_1.png +0 -0
  185. acoular-24.3/docs/source/examples/example_airfoil_in_open_jet_steering_vectors_2.png +0 -0
  186. acoular-24.3/docs/source/examples/example_rotating_point_source.rst +0 -34
  187. acoular-24.3/docs/source/examples/example_rotating_point_source_1.png +0 -0
  188. acoular-24.3/docs/source/examples/example_rotating_point_source_2.png +0 -0
  189. acoular-24.3/docs/source/examples/example_rotating_point_source_3.png +0 -0
  190. acoular-24.3/docs/source/examples/index.rst +0 -36
  191. acoular-24.3/docs/source/gen_rst.py +0 -1111
  192. acoular-24.3/docs/source/get_started/array64.png +0 -0
  193. acoular-24.3/docs/source/get_started/array64_py3colormap.png +0 -0
  194. acoular-24.3/docs/source/get_started/index.rst +0 -167
  195. acoular-24.3/docs/source/get_started/map_three_sources.png +0 -0
  196. acoular-24.3/docs/source/get_started/three_source_py3_colormap.png +0 -0
  197. acoular-24.3/docs/source/index.rst +0 -86
  198. acoular-24.3/docs/source/install/index.rst +0 -69
  199. acoular-24.3/docs/source/literature/index.rst +0 -56
  200. acoular-24.3/docs/source/news/index.rst +0 -183
  201. acoular-24.3/docs/source/requirements.txt +0 -6
  202. acoular-24.3/examples/README.txt +0 -6
  203. acoular-24.3/examples/acoular_demo.py +0 -77
  204. acoular-24.3/examples/basic_beamformer_example.py +0 -35
  205. acoular-24.3/examples/benchmark/run_benchmarks.py +0 -67
  206. acoular-24.3/examples/benchmark/test_beamformerfreq.py +0 -47
  207. acoular-24.3/examples/benchmark/test_delayandsum.py +0 -90
  208. acoular-24.3/examples/benchmark/test_dist_mat.py +0 -21
  209. acoular-24.3/examples/example_3D_beamforming.py +0 -133
  210. acoular-24.3/examples/example_GenericSignal.py +0 -25
  211. acoular-24.3/examples/example_SampleSplitter_bufferhandling.py +0 -153
  212. acoular-24.3/examples/example_SampleSplitter_multithreading.py +0 -98
  213. acoular-24.3/examples/example_airfoil_in_open_jet_beamforming.py +0 -198
  214. acoular-24.3/examples/example_airfoil_in_open_jet_cmf.py +0 -110
  215. acoular-24.3/examples/example_airfoil_in_open_jet_steering_vectors.py +0 -127
  216. acoular-24.3/examples/example_airfoil_in_open_jet_time_beamforming.py +0 -116
  217. acoular-24.3/examples/example_calib.xml +0 -59
  218. acoular-24.3/examples/example_data.h5 +0 -0
  219. acoular-24.3/examples/example_evaluate.py +0 -84
  220. acoular-24.3/examples/example_filter.py +0 -50
  221. acoular-24.3/examples/example_power_spectra_import.py +0 -42
  222. acoular-24.3/examples/example_rotating_point_source.py +0 -234
  223. acoular-24.3/examples/example_sectors_and_intergration.py +0 -123
  224. acoular-24.3/examples/example_tools.py +0 -70
  225. acoular-24.3/examples/three_sources.py +0 -41
  226. acoular-24.3/noxfile.py +0 -14
  227. acoular-24.3/recipe.local/meta.yaml +0 -41
  228. acoular-24.3/recipe.local/run_test.sh +0 -7
  229. acoular-24.3/scripts/plot_examples.py +0 -38
  230. {acoular-24.3 → acoular-24.5}/.gitignore +0 -0
  231. {acoular-24.3 → acoular-24.5}/AUTHORS.rst +0 -0
  232. {acoular-24.3 → acoular-24.5}/acoular/xml/HW90D240_f10.xml +0 -0
  233. {acoular-24.3 → acoular-24.5}/acoular/xml/W90_D105_f10.xml +0 -0
  234. {acoular-24.3 → acoular-24.5}/acoular/xml/acousticam_2c.xml +0 -0
  235. {acoular-24.3 → acoular-24.5}/acoular/xml/acousticam_4c.xml +0 -0
  236. {acoular-24.3 → acoular-24.5}/acoular/xml/array38.xml +0 -0
  237. {acoular-24.3 → acoular-24.5}/acoular/xml/array92x.xml +0 -0
  238. {acoular-24.3 → acoular-24.5}/acoular/xml/array_56.xml +0 -0
  239. {acoular-24.3 → acoular-24.5}/acoular/xml/array_56_10_9.xml +0 -0
  240. {acoular-24.3 → acoular-24.5}/acoular/xml/array_56_bomb.xml +0 -0
  241. {acoular-24.3 → acoular-24.5}/acoular/xml/array_56_v2.xml +0 -0
  242. {acoular-24.3 → acoular-24.5}/acoular/xml/array_64.xml +0 -0
  243. {acoular-24.3 → acoular-24.5}/acoular/xml/array_84_10_9.xml +0 -0
  244. {acoular-24.3 → acoular-24.5}/acoular/xml/array_84_bomb_v3.xml +0 -0
  245. {acoular-24.3 → acoular-24.5}/acoular/xml/calib_vw_ring32.xml +0 -0
  246. {acoular-24.3 → acoular-24.5}/acoular/xml/gfai_ring32.xml +0 -0
  247. {acoular-24.3 → acoular-24.5}/acoular/xml/tub_vogel64.xml +0 -0
acoular-24.5/LICENSE ADDED
@@ -0,0 +1,28 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) Acoular Development Team
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,41 +1,40 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: acoular
3
- Version: 24.3
3
+ Version: 24.5
4
4
  Summary: Python library for acoustic beamforming
5
5
  Project-URL: homepage, https://acoular.org
6
6
  Project-URL: documentation, https://acoular.org
7
7
  Project-URL: repository, https://github.com/acoular/acoular
8
8
  Author-email: Acoular Development Team <info@acoular.org>
9
9
  Maintainer-email: Adam Kujawski <adam.kujawski@tu-berlin.de>, Art Pelling <a.pelling@tu-berlin.de>, Ennes Sarradj <ennes.sarradj@tu-berlin.de>, Gert Herold <gert.herold@tu-berlin.de>, Mikolaj Czuchaj <mikolaj.czuchaj@tu-berlin.de>, Simon Jekosch <s.jekosch@tu-berlin.de>
10
- License: Copyright (c) Acoular Development Team.
11
- All rights reserved.
10
+ License: BSD 3-Clause License
12
11
 
12
+ Copyright (c) Acoular Development Team
13
13
 
14
14
  Redistribution and use in source and binary forms, with or without
15
15
  modification, are permitted provided that the following conditions are met:
16
16
 
17
- a. Redistributions of source code must retain the above copyright notice,
18
- this list of conditions and the following disclaimer.
19
- b. Redistributions in binary form must reproduce the above copyright
20
- notice, this list of conditions and the following disclaimer in the
21
- documentation and/or other materials provided with the distribution.
22
- c. Neither the name of the acoular developers nor the names of
23
- its contributors may be used to endorse or promote products
24
- derived from this software without specific prior written
25
- permission.
17
+ 1. Redistributions of source code must retain the above copyright notice, this
18
+ list of conditions and the following disclaimer.
26
19
 
20
+ 2. Redistributions in binary form must reproduce the above copyright notice,
21
+ this list of conditions and the following disclaimer in the documentation
22
+ and/or other materials provided with the distribution.
23
+
24
+ 3. Neither the name of the copyright holder nor the names of its
25
+ contributors may be used to endorse or promote products derived from
26
+ this software without specific prior written permission.
27
27
 
28
28
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29
29
  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
31
- ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
32
- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
31
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
32
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33
33
  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
34
34
  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
35
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36
- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
37
- OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
38
- DAMAGE.
35
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
36
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
38
  License-File: AUTHORS.rst
40
39
  License-File: LICENSE
41
40
  Keywords: acoustics,beamforming,microphone array
@@ -43,39 +42,31 @@ Classifier: Development Status :: 5 - Production/Stable
43
42
  Classifier: Intended Audience :: Education
44
43
  Classifier: Intended Audience :: Science/Research
45
44
  Classifier: License :: OSI Approved :: BSD License
46
- Classifier: Programming Language :: Python :: 3.7
47
45
  Classifier: Programming Language :: Python :: 3.8
48
46
  Classifier: Programming Language :: Python :: 3.9
49
47
  Classifier: Programming Language :: Python :: 3.10
50
48
  Classifier: Programming Language :: Python :: 3.11
49
+ Classifier: Programming Language :: Python :: 3.12
51
50
  Classifier: Topic :: Scientific/Engineering :: Physics
52
- Requires-Python: <=11,>=3.7
51
+ Requires-Python: <=12,>=3.8
53
52
  Requires-Dist: numba
54
53
  Requires-Dist: numpy
55
54
  Requires-Dist: scikit-learn
56
55
  Requires-Dist: scipy>=1.1.0
57
56
  Requires-Dist: tables>=3.4.4
58
57
  Requires-Dist: traits>=6.0
59
- Provides-Extra: dev
60
- Requires-Dist: graphviz; extra == 'dev'
61
- Requires-Dist: ipython; extra == 'dev'
62
- Requires-Dist: matplotlib; extra == 'dev'
63
- Requires-Dist: nox; extra == 'dev'
64
- Requires-Dist: numpydoc; extra == 'dev'
65
- Requires-Dist: pickleshare; extra == 'dev'
66
- Requires-Dist: sounddevice; extra == 'dev'
67
- Requires-Dist: sphinx; extra == 'dev'
68
58
  Provides-Extra: full
69
59
  Requires-Dist: matplotlib; extra == 'full'
70
60
  Requires-Dist: pylops; extra == 'full'
71
61
  Requires-Dist: sounddevice; extra == 'full'
72
62
  Description-Content-Type: text/markdown
73
63
 
74
- ![Acoular Logo](./docs/source/_static/Acoular_logo.png)
64
+ ![Acoular Logo](https://github.com/acoular/acoular/blob/master/docs/source/_static/Acoular_logo.png?raw=true)
75
65
 
76
66
  [![PyPI](https://img.shields.io/pypi/pyversions/acoular.svg)](https://pypi.org/project/acoular)
77
67
  [![PyPI](https://img.shields.io/pypi/v/acoular.svg)](https://pypi.org/project/acoular)
78
- [![Github](https://github.com/acoular/acoular/actions/workflows/python-package.yml/badge.svg)](https://github.com/acoular/acoular/actions/workflows/python-package.yml)
68
+ [![Actions status](https://github.com/acoular/acoular/actions/workflows/tests.yml/badge.svg)](https://github.com/acoular/acoular/actions)
69
+ [![DOI](https://zenodo.org/badge/29729101.svg)](https://zenodo.org/doi/10.5281/zenodo.3690794)
79
70
 
80
71
  # Acoular
81
72
  Acoular is a Python module for acoustic beamforming that is distributed under the new BSD license.
@@ -87,7 +78,7 @@ It is aimed at applications in acoustic testing. Multichannel data recorded by a
87
78
  - frequency domain deconvolution algorithms: DAMAS, DAMAS+, Clean, CleanSC, orthogonal deconvolution
88
79
  - frequency domain inverse methods: CMF (covariance matrix fitting), general inverse beamforming, SODIX
89
80
  - time domain methods: delay & sum beamforming, CleanT deconvolution
90
- - time domain methods applicable for moving source with arbitrary trajectory (linear, circular, arbitrarily 3D curved),
81
+ - time domain methods applicable for moving sources with arbitrary trajectory (linear, circular, arbitrarily 3D curved),
91
82
  - frequency domain methods for rotating sources via virtual array rotation for arbitrary arrays and with different interpolation techniques
92
83
  - 1D, 2D and 3D mapping grids for all methods
93
84
  - gridless option for orthogonal deconvolution
@@ -107,18 +98,25 @@ Acoular is licensed under the BSD 3-clause. See [LICENSE](LICENSE)
107
98
 
108
99
  # Citing
109
100
 
110
- If you use Acoular for academic work, please consider citing our
101
+ If you use Acoular for academic work, please consider citing both our
111
102
  [publication](https://doi.org/10.1016/j.apacoust.2016.09.015):
112
103
 
113
- Ennes Sarradj, Gert Herold,
114
- A Python framework for microphone array data processing,
115
- Applied Acoustics, Volume 116, 2017, Pages 50-58
104
+ Sarradj, E., & Herold, G. (2017).
105
+ A Python framework for microphone array data processing.
106
+ Applied Acoustics, 116, 5058.
107
+ https://doi.org/10.1016/j.apacoust.2016.09
108
+
109
+ and our [software](https://zenodo.org/doi/10.5281/zenodo.3690794):
110
+
111
+ Sarradj, E., Herold, G., Kujawski, A., Jekosch, S., Pelling, A. J. R., Czuchaj, M., Gensch, T., & Oertwig, S..
112
+ Acoular – Acoustic testing and source mapping software.
113
+ Zenodo. https://zenodo.org/doi/10.5281/zenodo.3690794
116
114
 
117
115
  # Dependencies
118
116
  Acoular runs under Linux, Windows and MacOS and needs Numpy, Scipy, Traits, scikit-learn, pytables, Numba packages available.
119
117
  Matplotlib is needed for some of the examples.
120
118
 
121
- If you want to use input from a soundcard hardware, you will also need to install the [sounddevice](https://python-sounddevice.readthedocs.io/en/0.3.12/installation.html) package. Some solvers for the CMF method need [Pylops](https://pylops.readthedocs.io/en/stable/installation.html).
119
+ If you want to use input from a soundcard, you will also need to install the [sounddevice](https://python-sounddevice.readthedocs.io/en/0.3.12/installation.html) package. Some solvers for the CMF method need [Pylops](https://pylops.readthedocs.io/en/stable/installation.html).
122
120
 
123
121
  # Installation
124
122
 
@@ -126,22 +124,22 @@ Acoular can be installed via [conda](https://docs.conda.io/en/latest/), which is
126
124
 
127
125
  conda install -c acoular acoular
128
126
 
129
- This will install Acoular in your Anaconda Python enviroment and make the Acoular library available from Python. In addition, this will install all dependencies (those other packages mentioned above) if they are not already present on your system.
127
+ This will install Acoular in your Anaconda Python environment and make the Acoular library available from Python. In addition, this will install all dependencies (those other packages mentioned above) if they are not already present on your system.
130
128
 
131
129
  A second option is to install Acoular via [pip](https://pip.pypa.io/en/stable/). It is recommended to use a dedicated [virtual environment](https://virtualenv.pypa.io/en/latest/) and then run
132
130
 
133
131
  pip install acoular
134
132
 
135
- For more detailed install instructions see the [documentation](http://acoular.org/install/index.html).
133
+ For more detailed installation instructions, see the [documentation](https://acoular.org/install/index.html).
136
134
 
137
135
  # Documentation and help
138
- Documentation is available [here](http://acoular.org) with a
139
- [getting started](http://acoular.org/get_started/index.html) section and
140
- [examples](http://acoular.org/examples/index.html).
136
+ Documentation is available [here](https://acoular.org) with a
137
+ [getting started](https://acoular.org/get_started/index.html) section and
138
+ [examples](https://acoular.org/examples/index.html).
141
139
 
142
140
  The Acoular [blog](https://acoular.github.io/blog/) contains some tutorials.
143
141
 
144
- Problems, suggestions and success using Acoular may be reported via the [acoular-users](https://groups.google.com/forum/#!forum/acoular-users) discussion forum.
142
+ If you discover problems with the Acoular software, please report them using the [issue tracker](https://github.com/acoular/acoular/issues) on GitHub. Please use the [Acoular discussions forum](https://github.com/acoular/acoular/discussions) for practical questions, discussions, and demos.
145
143
 
146
144
  # Example
147
145
  This reads data from 64 microphone channels and computes a beamforming map for the 8kHz third octave band:
@@ -178,4 +176,5 @@ interpolation='bicubic')
178
176
  colorbar()
179
177
  ```
180
178
 
181
- ![result](./docs/source/get_started/three_source_py3_colormap.png)
179
+
180
+ ![result](https://github.com/acoular/acoular/blob/master/docs/source/get_started/three_source_py3_colormap.png?raw=true)
@@ -1,8 +1,9 @@
1
- ![Acoular Logo](./docs/source/_static/Acoular_logo.png)
1
+ ![Acoular Logo](https://github.com/acoular/acoular/blob/master/docs/source/_static/Acoular_logo.png?raw=true)
2
2
 
3
3
  [![PyPI](https://img.shields.io/pypi/pyversions/acoular.svg)](https://pypi.org/project/acoular)
4
4
  [![PyPI](https://img.shields.io/pypi/v/acoular.svg)](https://pypi.org/project/acoular)
5
- [![Github](https://github.com/acoular/acoular/actions/workflows/python-package.yml/badge.svg)](https://github.com/acoular/acoular/actions/workflows/python-package.yml)
5
+ [![Actions status](https://github.com/acoular/acoular/actions/workflows/tests.yml/badge.svg)](https://github.com/acoular/acoular/actions)
6
+ [![DOI](https://zenodo.org/badge/29729101.svg)](https://zenodo.org/doi/10.5281/zenodo.3690794)
6
7
 
7
8
  # Acoular
8
9
  Acoular is a Python module for acoustic beamforming that is distributed under the new BSD license.
@@ -14,7 +15,7 @@ It is aimed at applications in acoustic testing. Multichannel data recorded by a
14
15
  - frequency domain deconvolution algorithms: DAMAS, DAMAS+, Clean, CleanSC, orthogonal deconvolution
15
16
  - frequency domain inverse methods: CMF (covariance matrix fitting), general inverse beamforming, SODIX
16
17
  - time domain methods: delay & sum beamforming, CleanT deconvolution
17
- - time domain methods applicable for moving source with arbitrary trajectory (linear, circular, arbitrarily 3D curved),
18
+ - time domain methods applicable for moving sources with arbitrary trajectory (linear, circular, arbitrarily 3D curved),
18
19
  - frequency domain methods for rotating sources via virtual array rotation for arbitrary arrays and with different interpolation techniques
19
20
  - 1D, 2D and 3D mapping grids for all methods
20
21
  - gridless option for orthogonal deconvolution
@@ -34,18 +35,25 @@ Acoular is licensed under the BSD 3-clause. See [LICENSE](LICENSE)
34
35
 
35
36
  # Citing
36
37
 
37
- If you use Acoular for academic work, please consider citing our
38
+ If you use Acoular for academic work, please consider citing both our
38
39
  [publication](https://doi.org/10.1016/j.apacoust.2016.09.015):
39
40
 
40
- Ennes Sarradj, Gert Herold,
41
- A Python framework for microphone array data processing,
42
- Applied Acoustics, Volume 116, 2017, Pages 50-58
41
+ Sarradj, E., & Herold, G. (2017).
42
+ A Python framework for microphone array data processing.
43
+ Applied Acoustics, 116, 5058.
44
+ https://doi.org/10.1016/j.apacoust.2016.09
45
+
46
+ and our [software](https://zenodo.org/doi/10.5281/zenodo.3690794):
47
+
48
+ Sarradj, E., Herold, G., Kujawski, A., Jekosch, S., Pelling, A. J. R., Czuchaj, M., Gensch, T., & Oertwig, S..
49
+ Acoular – Acoustic testing and source mapping software.
50
+ Zenodo. https://zenodo.org/doi/10.5281/zenodo.3690794
43
51
 
44
52
  # Dependencies
45
53
  Acoular runs under Linux, Windows and MacOS and needs Numpy, Scipy, Traits, scikit-learn, pytables, Numba packages available.
46
54
  Matplotlib is needed for some of the examples.
47
55
 
48
- If you want to use input from a soundcard hardware, you will also need to install the [sounddevice](https://python-sounddevice.readthedocs.io/en/0.3.12/installation.html) package. Some solvers for the CMF method need [Pylops](https://pylops.readthedocs.io/en/stable/installation.html).
56
+ If you want to use input from a soundcard, you will also need to install the [sounddevice](https://python-sounddevice.readthedocs.io/en/0.3.12/installation.html) package. Some solvers for the CMF method need [Pylops](https://pylops.readthedocs.io/en/stable/installation.html).
49
57
 
50
58
  # Installation
51
59
 
@@ -53,22 +61,22 @@ Acoular can be installed via [conda](https://docs.conda.io/en/latest/), which is
53
61
 
54
62
  conda install -c acoular acoular
55
63
 
56
- This will install Acoular in your Anaconda Python enviroment and make the Acoular library available from Python. In addition, this will install all dependencies (those other packages mentioned above) if they are not already present on your system.
64
+ This will install Acoular in your Anaconda Python environment and make the Acoular library available from Python. In addition, this will install all dependencies (those other packages mentioned above) if they are not already present on your system.
57
65
 
58
66
  A second option is to install Acoular via [pip](https://pip.pypa.io/en/stable/). It is recommended to use a dedicated [virtual environment](https://virtualenv.pypa.io/en/latest/) and then run
59
67
 
60
68
  pip install acoular
61
69
 
62
- For more detailed install instructions see the [documentation](http://acoular.org/install/index.html).
70
+ For more detailed installation instructions, see the [documentation](https://acoular.org/install/index.html).
63
71
 
64
72
  # Documentation and help
65
- Documentation is available [here](http://acoular.org) with a
66
- [getting started](http://acoular.org/get_started/index.html) section and
67
- [examples](http://acoular.org/examples/index.html).
73
+ Documentation is available [here](https://acoular.org) with a
74
+ [getting started](https://acoular.org/get_started/index.html) section and
75
+ [examples](https://acoular.org/examples/index.html).
68
76
 
69
77
  The Acoular [blog](https://acoular.github.io/blog/) contains some tutorials.
70
78
 
71
- Problems, suggestions and success using Acoular may be reported via the [acoular-users](https://groups.google.com/forum/#!forum/acoular-users) discussion forum.
79
+ If you discover problems with the Acoular software, please report them using the [issue tracker](https://github.com/acoular/acoular/issues) on GitHub. Please use the [Acoular discussions forum](https://github.com/acoular/acoular/discussions) for practical questions, discussions, and demos.
72
80
 
73
81
  # Example
74
82
  This reads data from 64 microphone channels and computes a beamforming map for the 8kHz third octave band:
@@ -105,4 +113,5 @@ interpolation='bicubic')
105
113
  colorbar()
106
114
  ```
107
115
 
108
- ![result](./docs/source/get_started/three_source_py3_colormap.png)
116
+
117
+ ![result](https://github.com/acoular/acoular/blob/master/docs/source/get_started/three_source_py3_colormap.png?raw=true)
@@ -0,0 +1,128 @@
1
+ # ------------------------------------------------------------------------------
2
+ # Copyright (c) Acoular Development Team.
3
+ # ------------------------------------------------------------------------------
4
+
5
+ """The Acoular library: several classes for the implementation of acoustic beamforming."""
6
+
7
+ import os
8
+
9
+ from .configuration import config
10
+ from .version import __author__, __date__, __version__
11
+
12
+ if config.have_sounddevice:
13
+ from .sdinput import SoundDeviceSamplesGenerator
14
+
15
+ from . import demo, tools
16
+ from .calib import Calib
17
+ from .environments import (
18
+ Environment,
19
+ FlowField,
20
+ GeneralFlowEnvironment,
21
+ OpenJet,
22
+ RotatingFlow,
23
+ SlotJet,
24
+ UniformFlowEnvironment,
25
+ cartToCyl,
26
+ cylToCart,
27
+ )
28
+ from .fbeamform import (
29
+ BeamformerAdaptiveGrid,
30
+ BeamformerBase,
31
+ BeamformerCapon,
32
+ BeamformerClean,
33
+ BeamformerCleansc,
34
+ BeamformerCMF,
35
+ BeamformerDamas,
36
+ BeamformerDamasPlus,
37
+ BeamformerEig,
38
+ BeamformerFunctional,
39
+ BeamformerGIB,
40
+ BeamformerGridlessOrth,
41
+ BeamformerMusic,
42
+ BeamformerOrth,
43
+ BeamformerSODIX,
44
+ L_p,
45
+ PointSpreadFunction,
46
+ SteeringVector,
47
+ integrate,
48
+ )
49
+ from .grids import (
50
+ CircSector,
51
+ ConvexSector,
52
+ Grid,
53
+ ImportGrid,
54
+ LineGrid,
55
+ MergeGrid,
56
+ MultiSector,
57
+ PolySector,
58
+ RectGrid,
59
+ RectGrid3D,
60
+ RectSector,
61
+ RectSector3D,
62
+ Sector,
63
+ )
64
+ from .microphones import MicGeom
65
+ from .signals import (
66
+ FiltWNoiseGenerator,
67
+ GenericSignalGenerator,
68
+ PNoiseGenerator,
69
+ SignalGenerator,
70
+ SineGenerator,
71
+ WNoiseGenerator,
72
+ )
73
+ from .sources import (
74
+ LineSource,
75
+ MaskedTimeSamples,
76
+ MovingLineSource,
77
+ MovingPointSource,
78
+ MovingPointSourceDipole,
79
+ PointSource,
80
+ PointSourceConvolve,
81
+ PointSourceDipole,
82
+ SourceMixer,
83
+ SphericalHarmonicSource,
84
+ TimeSamples,
85
+ UncorrelatedNoiseSource,
86
+ )
87
+ from .spectra import BaseSpectra, FFTSpectra, PowerSpectra, PowerSpectraImport, synthetic
88
+ from .spectra import PowerSpectra as EigSpectra
89
+ from .tbeamform import (
90
+ BeamformerCleant,
91
+ BeamformerCleantSq,
92
+ BeamformerCleantSqTraj,
93
+ BeamformerCleantTraj,
94
+ BeamformerTime,
95
+ BeamformerTimeSq,
96
+ BeamformerTimeSqTraj,
97
+ BeamformerTimeTraj,
98
+ IntegratorSectorTime,
99
+ )
100
+ from .tprocess import (
101
+ AngleTracker,
102
+ ChannelMixer,
103
+ Filter,
104
+ FilterBank,
105
+ FiltFiltOctave,
106
+ FiltFreqWeight,
107
+ FiltOctave,
108
+ MaskedTimeInOut,
109
+ Mixer,
110
+ OctaveFilterBank,
111
+ SamplesGenerator,
112
+ SampleSplitter,
113
+ SpatialInterpolator,
114
+ SpatialInterpolatorConstantRotation,
115
+ SpatialInterpolatorRotation,
116
+ TimeAverage,
117
+ TimeCache,
118
+ TimeConvolve,
119
+ TimeCumAverage,
120
+ TimeExpAverage,
121
+ TimeInOut,
122
+ TimePower,
123
+ TimeReverse,
124
+ Trigger,
125
+ WriteH5,
126
+ WriteWAV,
127
+ )
128
+ from .trajectory import Trajectory
@@ -1,10 +1,7 @@
1
- # -*- coding: utf-8 -*-
2
- #pylint: disable-msg=E0611, E1101, C0103, R0901, R0902, R0903, R0904, W0232
3
- #------------------------------------------------------------------------------
1
+ # ------------------------------------------------------------------------------
4
2
  # Copyright (c) Acoular Development Team.
5
- #------------------------------------------------------------------------------
6
- """
7
- Implements calibration of multichannel time signals.
3
+ # ------------------------------------------------------------------------------
4
+ """Implements calibration of multichannel time signals.
8
5
 
9
6
  .. autosummary::
10
7
  :toctree: generated/
@@ -13,69 +10,64 @@ Implements calibration of multichannel time signals.
13
10
  """
14
11
 
15
12
  # imports from other packages
16
- from numpy import array
17
- from traits.api import HasPrivateTraits, CLong, File, CArray, Property, \
18
- cached_property, on_trait_change
19
13
  from os import path
20
14
 
15
+ from numpy import array
16
+ from traits.api import CArray, CLong, File, HasPrivateTraits, Property, cached_property, on_trait_change
17
+
21
18
  # acoular imports
22
19
  from .internal import digest
23
20
 
24
- class Calib( HasPrivateTraits ):
25
- """
26
- Container for calibration data in `*.xml` format
27
-
21
+
22
+ class Calib(HasPrivateTraits):
23
+ """Container for calibration data in `*.xml` format.
24
+
28
25
  This class serves as interface to load calibration data for the used
29
- microphone array.
26
+ microphone array. The calibration factors are stored as [Pa/unit].
30
27
  """
31
28
 
32
29
  #: Name of the .xml file to be imported.
33
- from_file = File(filter=['*.xml'],
34
- desc="name of the xml file to import")
30
+ from_file = File(filter=['*.xml'], desc='name of the xml file to import')
35
31
 
36
32
  #: Basename of the .xml-file. Readonly / is set automatically.
37
- basename = Property( depends_on = 'from_file',
38
- desc="basename of xml file")
39
-
40
- #: Number of microphones in the calibration data,
33
+ basename = Property(depends_on='from_file', desc='basename of xml file')
34
+
35
+ #: Number of microphones in the calibration data,
41
36
  #: is set automatically / read from file.
42
- num_mics = CLong( 0,
43
- desc="number of microphones in the geometry")
37
+ num_mics = CLong(0, desc='number of microphones in the geometry')
44
38
 
45
- #: Array of calibration factors,
39
+ #: Array of calibration factors,
46
40
  #: is set automatically / read from file.
47
- data = CArray(
48
- desc="calibration data")
41
+ data = CArray(desc='calibration data')
49
42
 
50
43
  # Internal identifier
51
- digest = Property( depends_on = ['basename', ] )
44
+ digest = Property(depends_on=['basename'])
52
45
 
53
46
  @cached_property
54
- def _get_digest( self ):
47
+ def _get_digest(self):
55
48
  return digest(self)
56
-
49
+
57
50
  @cached_property
58
- def _get_basename( self ):
51
+ def _get_basename(self):
59
52
  if not path.isfile(self.from_file):
60
53
  return ''
61
54
  return path.splitext(path.basename(self.from_file))[0]
62
-
55
+
63
56
  @on_trait_change('basename')
64
- def import_data( self ):
65
- """
66
- Loads the calibration data from `*.xml` file .
67
- """
57
+ def import_data(self):
58
+ """Loads the calibration data from `*.xml` file ."""
68
59
  if not path.isfile(self.from_file):
69
60
  # empty calibration
70
- if self.basename=='':
71
- self.data = None
61
+ if self.basename == '':
62
+ self.data = None
72
63
  self.num_mics = 0
73
64
  # no file there
74
65
  else:
75
- self.data = array([1.0, ], 'd')
66
+ self.data = array([1.0], 'd')
76
67
  self.num_mics = 1
77
68
  return
78
69
  import xml.dom.minidom
70
+
79
71
  doc = xml.dom.minidom.parse(self.from_file)
80
72
  names = []
81
73
  data = []
@@ -84,4 +76,3 @@ class Calib( HasPrivateTraits ):
84
76
  data.append(float(element.getAttribute('factor')))
85
77
  self.data = array(data, 'd')
86
78
  self.num_mics = self.data.shape[0]
87
-