acoular 23.11__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 (243) hide show
  1. acoular-24.5/LICENSE +28 -0
  2. {acoular-23.11 → acoular-24.5}/PKG-INFO +47 -40
  3. {acoular-23.11 → acoular-24.5}/README.md +24 -15
  4. acoular-24.5/acoular/__init__.py +128 -0
  5. {acoular-23.11 → acoular-24.5}/acoular/calib.py +29 -38
  6. {acoular-23.11 → 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-23.11 → acoular-24.5}/acoular/environments.py +265 -262
  10. {acoular-23.11 → acoular-24.5}/acoular/fastFuncs.py +361 -191
  11. {acoular-23.11 → acoular-24.5}/acoular/fbeamform.py +1478 -1407
  12. {acoular-23.11 → acoular-24.5}/acoular/grids.py +501 -545
  13. {acoular-23.11 → 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-23.11 → acoular-24.5}/acoular/signals.py +167 -179
  19. acoular-24.5/acoular/sources.py +1549 -0
  20. {acoular-23.11 → 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-23.11 → acoular-24.5}/acoular/tprocess.py +1201 -1143
  28. acoular-24.5/acoular/traitsviews.py +533 -0
  29. {acoular-23.11 → 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-23.11/acoular/xml/minidsp_uma16.xml → acoular-24.5/acoular/xml/minidsp_uma-16_mirrored.xml +3 -0
  33. {acoular-23.11 → acoular-24.5}/pyproject.toml +55 -8
  34. acoular-23.11/.github/workflows/python-package.yml +0 -45
  35. acoular-23.11/.gitlab-ci.yml +0 -46
  36. acoular-23.11/.travis.yml +0 -142
  37. acoular-23.11/LICENSE +0 -29
  38. acoular-23.11/MANIFEST.in +0 -5
  39. acoular-23.11/acoular/__init__.py +0 -60
  40. acoular-23.11/acoular/demo/__init__.py +0 -7
  41. acoular-23.11/acoular/demo/acoular_demo.py +0 -80
  42. acoular-23.11/acoular/fileimport.py +0 -380
  43. acoular-23.11/acoular/h5files.py +0 -204
  44. acoular-23.11/acoular/internal.py +0 -26
  45. acoular-23.11/acoular/microphones.py +0 -135
  46. acoular-23.11/acoular/nidaqimport.py +0 -273
  47. acoular-23.11/acoular/sdinput.py +0 -118
  48. acoular-23.11/acoular/sources.py +0 -1424
  49. acoular-23.11/acoular/tbeamform.py +0 -812
  50. acoular-23.11/acoular/tests/reference_data/BeamformerBase.npy +0 -0
  51. acoular-23.11/acoular/tests/reference_data/BeamformerBaseFalse1.npy +0 -0
  52. acoular-23.11/acoular/tests/reference_data/BeamformerBaseFalse2.npy +0 -0
  53. acoular-23.11/acoular/tests/reference_data/BeamformerBaseFalse3.npy +0 -0
  54. acoular-23.11/acoular/tests/reference_data/BeamformerBaseFalse4.npy +0 -0
  55. acoular-23.11/acoular/tests/reference_data/BeamformerBaseTrue1.npy +0 -0
  56. acoular-23.11/acoular/tests/reference_data/BeamformerBaseTrue2.npy +0 -0
  57. acoular-23.11/acoular/tests/reference_data/BeamformerBaseTrue3.npy +0 -0
  58. acoular-23.11/acoular/tests/reference_data/BeamformerBaseTrue4.npy +0 -0
  59. acoular-23.11/acoular/tests/reference_data/BeamformerCMF.npy +0 -0
  60. acoular-23.11/acoular/tests/reference_data/BeamformerCapon.npy +0 -0
  61. acoular-23.11/acoular/tests/reference_data/BeamformerClean.npy +0 -0
  62. acoular-23.11/acoular/tests/reference_data/BeamformerCleansc.npy +0 -0
  63. acoular-23.11/acoular/tests/reference_data/BeamformerCleant.npy +0 -0
  64. acoular-23.11/acoular/tests/reference_data/BeamformerCleantSq.npy +0 -0
  65. acoular-23.11/acoular/tests/reference_data/BeamformerCleantSqTraj.npy +0 -0
  66. acoular-23.11/acoular/tests/reference_data/BeamformerCleantTraj.npy +0 -0
  67. acoular-23.11/acoular/tests/reference_data/BeamformerDamas.npy +0 -0
  68. acoular-23.11/acoular/tests/reference_data/BeamformerDamasPlus.npy +0 -0
  69. acoular-23.11/acoular/tests/reference_data/BeamformerEig.npy +0 -0
  70. acoular-23.11/acoular/tests/reference_data/BeamformerEigFalse1.npy +0 -0
  71. acoular-23.11/acoular/tests/reference_data/BeamformerEigFalse2.npy +0 -0
  72. acoular-23.11/acoular/tests/reference_data/BeamformerEigFalse3.npy +0 -0
  73. acoular-23.11/acoular/tests/reference_data/BeamformerEigFalse4.npy +0 -0
  74. acoular-23.11/acoular/tests/reference_data/BeamformerEigTrue1.npy +0 -0
  75. acoular-23.11/acoular/tests/reference_data/BeamformerEigTrue2.npy +0 -0
  76. acoular-23.11/acoular/tests/reference_data/BeamformerEigTrue3.npy +0 -0
  77. acoular-23.11/acoular/tests/reference_data/BeamformerEigTrue4.npy +0 -0
  78. acoular-23.11/acoular/tests/reference_data/BeamformerFunctional.npy +0 -0
  79. acoular-23.11/acoular/tests/reference_data/BeamformerGIB.npy +0 -0
  80. acoular-23.11/acoular/tests/reference_data/BeamformerGridlessOrth.npy +0 -0
  81. acoular-23.11/acoular/tests/reference_data/BeamformerMusic.npy +0 -0
  82. acoular-23.11/acoular/tests/reference_data/BeamformerOrth.npy +0 -0
  83. acoular-23.11/acoular/tests/reference_data/BeamformerTime.npy +0 -0
  84. acoular-23.11/acoular/tests/reference_data/BeamformerTimeSq.npy +0 -0
  85. acoular-23.11/acoular/tests/reference_data/BeamformerTimeSqTraj.npy +0 -0
  86. acoular-23.11/acoular/tests/reference_data/BeamformerTimeTraj.npy +0 -0
  87. acoular-23.11/acoular/tests/reference_data/Environment.npy +0 -0
  88. acoular-23.11/acoular/tests/reference_data/Example1_numerical_values_testsum.h5 +0 -0
  89. acoular-23.11/acoular/tests/reference_data/FiltFiltOctave__.npy +0 -0
  90. acoular-23.11/acoular/tests/reference_data/FiltFiltOctave_band_100_0_fraction_Thirdoctave_.npy +0 -0
  91. acoular-23.11/acoular/tests/reference_data/FiltFreqWeight_weight_A_.npy +0 -0
  92. acoular-23.11/acoular/tests/reference_data/FiltFreqWeight_weight_C_.npy +0 -0
  93. acoular-23.11/acoular/tests/reference_data/FiltFreqWeight_weight_Z_.npy +0 -0
  94. acoular-23.11/acoular/tests/reference_data/FiltOctave__.npy +0 -0
  95. acoular-23.11/acoular/tests/reference_data/FiltOctave_band_100_0_fraction_Thirdoctave_.npy +0 -0
  96. acoular-23.11/acoular/tests/reference_data/Filter__.npy +0 -0
  97. acoular-23.11/acoular/tests/reference_data/GeneralFlowEnvironment.npy +0 -0
  98. acoular-23.11/acoular/tests/reference_data/OctaveFilterBank__.npy +0 -0
  99. acoular-23.11/acoular/tests/reference_data/OpenJet.npy +0 -0
  100. acoular-23.11/acoular/tests/reference_data/PointSource.npy +0 -0
  101. acoular-23.11/acoular/tests/reference_data/PowerSpectra_csm.npy +0 -0
  102. acoular-23.11/acoular/tests/reference_data/PowerSpectra_ev.npy +0 -0
  103. acoular-23.11/acoular/tests/reference_data/RotatingFlow.npy +0 -0
  104. acoular-23.11/acoular/tests/reference_data/SlotJet.npy +0 -0
  105. acoular-23.11/acoular/tests/reference_data/TimeAverage__.npy +0 -0
  106. acoular-23.11/acoular/tests/reference_data/TimeCumAverage__.npy +0 -0
  107. acoular-23.11/acoular/tests/reference_data/TimeExpAverage_weight_F_.npy +0 -0
  108. acoular-23.11/acoular/tests/reference_data/TimeExpAverage_weight_I_.npy +0 -0
  109. acoular-23.11/acoular/tests/reference_data/TimeExpAverage_weight_S_.npy +0 -0
  110. acoular-23.11/acoular/tests/reference_data/TimeInOut__.npy +0 -0
  111. acoular-23.11/acoular/tests/reference_data/TimePower__.npy +0 -0
  112. acoular-23.11/acoular/tests/reference_data/TimeReverse__.npy +0 -0
  113. acoular-23.11/acoular/tests/reference_data/UniformFlowEnvironment.npy +0 -0
  114. acoular-23.11/acoular/tests/reference_data/beamformer_traj_time_data.h5 +0 -0
  115. acoular-23.11/acoular/tests/run_tests.sh +0 -18
  116. acoular-23.11/acoular/tests/run_tests_osx.sh +0 -16
  117. acoular-23.11/acoular/tests/test.npy +0 -0
  118. acoular-23.11/acoular/tests/test_beamformer_results.py +0 -204
  119. acoular-23.11/acoular/tests/test_classes.py +0 -60
  120. acoular-23.11/acoular/tests/test_digest.py +0 -125
  121. acoular-23.11/acoular/tests/test_environments.py +0 -73
  122. acoular-23.11/acoular/tests/test_example1.py +0 -124
  123. acoular-23.11/acoular/tests/test_grid.py +0 -92
  124. acoular-23.11/acoular/tests/test_integrate.py +0 -102
  125. acoular-23.11/acoular/tests/test_signals.py +0 -60
  126. acoular-23.11/acoular/tests/test_sources.py +0 -65
  127. acoular-23.11/acoular/tests/test_spectra.py +0 -38
  128. acoular-23.11/acoular/tests/test_timecache.py +0 -35
  129. acoular-23.11/acoular/tests/test_tprocess.py +0 -90
  130. acoular-23.11/acoular/tests/test_traj_beamformer_results.py +0 -164
  131. acoular-23.11/acoular/tests/unsupported/SpeedComparison/OvernightTestcasesBeamformer_nMics32_nGridPoints100_nFreqs4_nTrials10.png +0 -0
  132. acoular-23.11/acoular/tests/unsupported/SpeedComparison/cythonBeamformer.pyx +0 -237
  133. acoular-23.11/acoular/tests/unsupported/SpeedComparison/mainForCython.py +0 -103
  134. acoular-23.11/acoular/tests/unsupported/SpeedComparison/mainForParallelJit.py +0 -143
  135. acoular-23.11/acoular/tests/unsupported/SpeedComparison/setupCythonOpenMP.py +0 -63
  136. acoular-23.11/acoular/tests/unsupported/SpeedComparison/sharedFunctions.py +0 -153
  137. acoular-23.11/acoular/tests/unsupported/SpeedComparison/timeOverNMics_AllImportantMethods.png +0 -0
  138. acoular-23.11/acoular/tests/unsupported/SpeedComparison/timeOverNMics_faverage.png +0 -0
  139. acoular-23.11/acoular/tests/unsupported/SpeedComparison/vglOptimierungFAverage.py +0 -204
  140. acoular-23.11/acoular/tests/unsupported/SpeedComparison/vglOptimierungGaussSeidel.py +0 -182
  141. acoular-23.11/acoular/tests/unsupported/SpeedComparison/vglOptimierungR_BEAMFULL_INVERSE.py +0 -764
  142. acoular-23.11/acoular/tests/unsupported/SpeedComparison/vglOptimierungR_BEAM_OS.py +0 -231
  143. acoular-23.11/acoular/tests/unsupported/SpeedComparison/whatsFastestWayFor_absASquared.py +0 -48
  144. acoular-23.11/acoular/tests/unsupported/functionalBeamformer.py +0 -123
  145. acoular-23.11/acoular/tests/unsupported/precisionTest.py +0 -153
  146. acoular-23.11/acoular/tests/unsupported/validationOfBeamformerFuncsPOSTAcoularIntegration.py +0 -254
  147. acoular-23.11/acoular/tests/unsupported/validationOfBeamformerFuncsPREeAcoularIntegration.py +0 -531
  148. acoular-23.11/acoular/tfastfuncs.py +0 -175
  149. acoular-23.11/acoular/tools.py +0 -418
  150. acoular-23.11/acoular/traitsviews.py +0 -521
  151. acoular-23.11/acoular/version.py +0 -9
  152. acoular-23.11/build_conda.sh +0 -6
  153. acoular-23.11/docs/Makefile +0 -130
  154. acoular-23.11/docs/source/_static/Acoular_logo.png +0 -0
  155. acoular-23.11/docs/source/_static/Airfoil_selfnoise_3d.png +0 -0
  156. acoular-23.11/docs/source/_static/acoular_logo.ico +0 -0
  157. acoular-23.11/docs/source/_static/airfoil_leading_edge_noise.png +0 -0
  158. acoular-23.11/docs/source/_static/no_image.png +0 -0
  159. acoular-23.11/docs/source/_static/pantograph_noise_3d.png +0 -0
  160. acoular-23.11/docs/source/_templates/autosummary/class.rst +0 -9
  161. acoular-23.11/docs/source/_templates/autosummary/module.rst +0 -5
  162. acoular-23.11/docs/source/_themes/haikuac/layout.html +0 -70
  163. acoular-23.11/docs/source/_themes/haikuac/static/alert_info_32.png +0 -0
  164. acoular-23.11/docs/source/_themes/haikuac/static/alert_warning_32.png +0 -0
  165. acoular-23.11/docs/source/_themes/haikuac/static/bg-page.png +0 -0
  166. acoular-23.11/docs/source/_themes/haikuac/static/bullet_orange.png +0 -0
  167. acoular-23.11/docs/source/_themes/haikuac/static/haikuac.css_t +0 -436
  168. acoular-23.11/docs/source/_themes/haikuac/theme.conf +0 -12
  169. acoular-23.11/docs/source/api_ref/index.rst +0 -63
  170. acoular-23.11/docs/source/conf.py +0 -233
  171. acoular-23.11/docs/source/examples/example_3D_beamforming.rst +0 -16
  172. acoular-23.11/docs/source/examples/example_3D_beamforming_1.png +0 -0
  173. acoular-23.11/docs/source/examples/example_airfoil_in_open_jet_beamforming.rst +0 -36
  174. acoular-23.11/docs/source/examples/example_airfoil_in_open_jet_beamforming_1.png +0 -0
  175. acoular-23.11/docs/source/examples/example_airfoil_in_open_jet_beamforming_2.png +0 -0
  176. acoular-23.11/docs/source/examples/example_airfoil_in_open_jet_beamforming_3.png +0 -0
  177. acoular-23.11/docs/source/examples/example_airfoil_in_open_jet_cmf.rst +0 -14
  178. acoular-23.11/docs/source/examples/example_airfoil_in_open_jet_cmf_1.png +0 -0
  179. acoular-23.11/docs/source/examples/example_airfoil_in_open_jet_steering_vectors.rst +0 -27
  180. acoular-23.11/docs/source/examples/example_airfoil_in_open_jet_steering_vectors_1.png +0 -0
  181. acoular-23.11/docs/source/examples/example_airfoil_in_open_jet_steering_vectors_2.png +0 -0
  182. acoular-23.11/docs/source/examples/example_rotating_point_source.rst +0 -34
  183. acoular-23.11/docs/source/examples/example_rotating_point_source_1.png +0 -0
  184. acoular-23.11/docs/source/examples/example_rotating_point_source_2.png +0 -0
  185. acoular-23.11/docs/source/examples/example_rotating_point_source_3.png +0 -0
  186. acoular-23.11/docs/source/examples/index.rst +0 -36
  187. acoular-23.11/docs/source/gen_rst.py +0 -1111
  188. acoular-23.11/docs/source/get_started/array64.png +0 -0
  189. acoular-23.11/docs/source/get_started/array64_py3colormap.png +0 -0
  190. acoular-23.11/docs/source/get_started/index.rst +0 -166
  191. acoular-23.11/docs/source/get_started/map_three_sources.png +0 -0
  192. acoular-23.11/docs/source/get_started/three_source_py3_colormap.png +0 -0
  193. acoular-23.11/docs/source/index.rst +0 -86
  194. acoular-23.11/docs/source/install/index.rst +0 -69
  195. acoular-23.11/docs/source/literature/index.rst +0 -56
  196. acoular-23.11/docs/source/news/index.rst +0 -164
  197. acoular-23.11/docs/source/requirements.txt +0 -6
  198. acoular-23.11/examples/README.txt +0 -6
  199. acoular-23.11/examples/acoular_demo.py +0 -77
  200. acoular-23.11/examples/basic_beamformer_example.py +0 -35
  201. acoular-23.11/examples/benchmark/run_benchmarks.py +0 -67
  202. acoular-23.11/examples/benchmark/test_beamformerfreq.py +0 -47
  203. acoular-23.11/examples/benchmark/test_delayandsum.py +0 -90
  204. acoular-23.11/examples/benchmark/test_dist_mat.py +0 -21
  205. acoular-23.11/examples/example_3D_beamforming.py +0 -133
  206. acoular-23.11/examples/example_GenericSignal.py +0 -25
  207. acoular-23.11/examples/example_SampleSplitter_bufferhandling.py +0 -153
  208. acoular-23.11/examples/example_SampleSplitter_multithreading.py +0 -98
  209. acoular-23.11/examples/example_airfoil_in_open_jet_beamforming.py +0 -198
  210. acoular-23.11/examples/example_airfoil_in_open_jet_cmf.py +0 -110
  211. acoular-23.11/examples/example_airfoil_in_open_jet_steering_vectors.py +0 -127
  212. acoular-23.11/examples/example_airfoil_in_open_jet_time_beamforming.py +0 -116
  213. acoular-23.11/examples/example_calib.xml +0 -59
  214. acoular-23.11/examples/example_data.h5 +0 -0
  215. acoular-23.11/examples/example_evaluate.py +0 -84
  216. acoular-23.11/examples/example_filter.py +0 -50
  217. acoular-23.11/examples/example_power_spectra_import.py +0 -42
  218. acoular-23.11/examples/example_rotating_point_source.py +0 -234
  219. acoular-23.11/examples/example_sectors_and_intergration.py +0 -123
  220. acoular-23.11/examples/example_tools.py +0 -70
  221. acoular-23.11/examples/three_sources.py +0 -41
  222. acoular-23.11/noxfile.py +0 -14
  223. acoular-23.11/recipe.local/meta.yaml +0 -41
  224. acoular-23.11/recipe.local/run_test.sh +0 -7
  225. acoular-23.11/scripts/plot_examples.py +0 -38
  226. {acoular-23.11 → acoular-24.5}/.gitignore +0 -0
  227. {acoular-23.11 → acoular-24.5}/AUTHORS.rst +0 -0
  228. {acoular-23.11 → acoular-24.5}/acoular/xml/HW90D240_f10.xml +0 -0
  229. {acoular-23.11 → acoular-24.5}/acoular/xml/W90_D105_f10.xml +0 -0
  230. {acoular-23.11 → acoular-24.5}/acoular/xml/acousticam_2c.xml +0 -0
  231. {acoular-23.11 → acoular-24.5}/acoular/xml/acousticam_4c.xml +0 -0
  232. {acoular-23.11 → acoular-24.5}/acoular/xml/array38.xml +0 -0
  233. {acoular-23.11 → acoular-24.5}/acoular/xml/array92x.xml +0 -0
  234. {acoular-23.11 → acoular-24.5}/acoular/xml/array_56.xml +0 -0
  235. {acoular-23.11 → acoular-24.5}/acoular/xml/array_56_10_9.xml +0 -0
  236. {acoular-23.11 → acoular-24.5}/acoular/xml/array_56_bomb.xml +0 -0
  237. {acoular-23.11 → acoular-24.5}/acoular/xml/array_56_v2.xml +0 -0
  238. {acoular-23.11 → acoular-24.5}/acoular/xml/array_64.xml +0 -0
  239. {acoular-23.11 → acoular-24.5}/acoular/xml/array_84_10_9.xml +0 -0
  240. {acoular-23.11 → acoular-24.5}/acoular/xml/array_84_bomb_v3.xml +0 -0
  241. {acoular-23.11 → acoular-24.5}/acoular/xml/calib_vw_ring32.xml +0 -0
  242. {acoular-23.11 → acoular-24.5}/acoular/xml/gfai_ring32.xml +0 -0
  243. {acoular-23.11 → 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: 23.11
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
- Maintainer-email: Adam Kujawski <adam.kujawski@tu-berlin.de>, Art Pelling <a.pelling@tu-berlin.de>, Ennes Sarradj <ennes.sarradj@tu-berlin.de>, Gert Herlod <gert.herold@tu-berlin.de>, Mikolaj Czuchaj <mikolaj.czuchaj@tu-berlin.de>, Simon Jekosch <s.jekosch@tu-berlin.de>
10
- License: Copyright (c) 2006-2023 The acoular developers.
11
- All rights reserved.
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: 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,31 +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: nox; extra == 'dev'
61
58
  Provides-Extra: full
62
59
  Requires-Dist: matplotlib; extra == 'full'
63
60
  Requires-Dist: pylops; extra == 'full'
61
+ Requires-Dist: sounddevice; extra == 'full'
64
62
  Description-Content-Type: text/markdown
65
63
 
66
- ![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)
67
65
 
68
66
  [![PyPI](https://img.shields.io/pypi/pyversions/acoular.svg)](https://pypi.org/project/acoular)
69
67
  [![PyPI](https://img.shields.io/pypi/v/acoular.svg)](https://pypi.org/project/acoular)
70
- [![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)
71
70
 
72
71
  # Acoular
73
72
  Acoular is a Python module for acoustic beamforming that is distributed under the new BSD license.
@@ -79,7 +78,7 @@ It is aimed at applications in acoustic testing. Multichannel data recorded by a
79
78
  - frequency domain deconvolution algorithms: DAMAS, DAMAS+, Clean, CleanSC, orthogonal deconvolution
80
79
  - frequency domain inverse methods: CMF (covariance matrix fitting), general inverse beamforming, SODIX
81
80
  - time domain methods: delay & sum beamforming, CleanT deconvolution
82
- - 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),
83
82
  - frequency domain methods for rotating sources via virtual array rotation for arbitrary arrays and with different interpolation techniques
84
83
  - 1D, 2D and 3D mapping grids for all methods
85
84
  - gridless option for orthogonal deconvolution
@@ -99,18 +98,25 @@ Acoular is licensed under the BSD 3-clause. See [LICENSE](LICENSE)
99
98
 
100
99
  # Citing
101
100
 
102
- If you use Acoular for academic work, please consider citing our
101
+ If you use Acoular for academic work, please consider citing both our
103
102
  [publication](https://doi.org/10.1016/j.apacoust.2016.09.015):
104
103
 
105
- Ennes Sarradj, Gert Herold,
106
- A Python framework for microphone array data processing,
107
- 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
108
114
 
109
115
  # Dependencies
110
116
  Acoular runs under Linux, Windows and MacOS and needs Numpy, Scipy, Traits, scikit-learn, pytables, Numba packages available.
111
117
  Matplotlib is needed for some of the examples.
112
118
 
113
- 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).
114
120
 
115
121
  # Installation
116
122
 
@@ -118,22 +124,22 @@ Acoular can be installed via [conda](https://docs.conda.io/en/latest/), which is
118
124
 
119
125
  conda install -c acoular acoular
120
126
 
121
- 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.
122
128
 
123
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
124
130
 
125
131
  pip install acoular
126
132
 
127
- 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).
128
134
 
129
135
  # Documentation and help
130
- Documentation is available [here](http://acoular.org) with a
131
- [getting started](http://acoular.org/get_started/index.html) section and
132
- [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).
133
139
 
134
140
  The Acoular [blog](https://acoular.github.io/blog/) contains some tutorials.
135
141
 
136
- 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.
137
143
 
138
144
  # Example
139
145
  This reads data from 64 microphone channels and computes a beamforming map for the 8kHz third octave band:
@@ -170,4 +176,5 @@ interpolation='bicubic')
170
176
  colorbar()
171
177
  ```
172
178
 
173
- ![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
-