acoular 23.6__tar.gz → 24.3__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 (238) hide show
  1. acoular-24.3/.github/workflows/build_docs.yml +43 -0
  2. {acoular-23.6 → acoular-24.3}/.github/workflows/python-package.yml +2 -2
  3. {acoular-23.6 → acoular-24.3}/.gitignore +1 -0
  4. acoular-24.3/.zenodo.json +47 -0
  5. {acoular-23.6 → acoular-24.3}/LICENSE +1 -1
  6. acoular-24.3/PKG-INFO +181 -0
  7. acoular-24.3/README.md +108 -0
  8. {acoular-23.6 → acoular-24.3}/acoular/__init__.py +2 -2
  9. {acoular-23.6 → acoular-24.3}/acoular/configuration.py +37 -1
  10. {acoular-23.6 → acoular-24.3}/acoular/environments.py +15 -9
  11. acoular-24.3/acoular/fastFuncs.py +688 -0
  12. {acoular-23.6 → acoular-24.3}/acoular/fbeamform.py +168 -109
  13. {acoular-23.6 → acoular-24.3}/acoular/grids.py +33 -114
  14. {acoular-23.6 → acoular-24.3}/acoular/sources.py +77 -3
  15. {acoular-23.6 → acoular-24.3}/acoular/spectra.py +2 -2
  16. {acoular-23.6 → acoular-24.3}/acoular/tbeamform.py +15 -8
  17. acoular-24.3/acoular/tests/reference_data/BeamformerBaseFalse1.npy +0 -0
  18. acoular-24.3/acoular/tests/reference_data/BeamformerBaseFalse2.npy +0 -0
  19. acoular-24.3/acoular/tests/reference_data/BeamformerBaseFalse3.npy +0 -0
  20. acoular-24.3/acoular/tests/reference_data/BeamformerBaseFalse4.npy +0 -0
  21. acoular-24.3/acoular/tests/reference_data/BeamformerBaseTrue1.npy +0 -0
  22. acoular-24.3/acoular/tests/reference_data/BeamformerBaseTrue2.npy +0 -0
  23. acoular-24.3/acoular/tests/reference_data/BeamformerBaseTrue3.npy +0 -0
  24. acoular-24.3/acoular/tests/reference_data/BeamformerBaseTrue4.npy +0 -0
  25. acoular-24.3/acoular/tests/reference_data/BeamformerCMFLassoLarsBIC.npy +0 -0
  26. acoular-24.3/acoular/tests/reference_data/BeamformerCMFNNLS.npy +0 -0
  27. acoular-24.3/acoular/tests/reference_data/BeamformerCleantSqTraj.npy +0 -0
  28. acoular-24.3/acoular/tests/reference_data/BeamformerCleantTraj.npy +0 -0
  29. acoular-24.3/acoular/tests/reference_data/BeamformerEigFalse1.npy +0 -0
  30. acoular-24.3/acoular/tests/reference_data/BeamformerEigFalse2.npy +0 -0
  31. acoular-24.3/acoular/tests/reference_data/BeamformerEigFalse3.npy +0 -0
  32. acoular-24.3/acoular/tests/reference_data/BeamformerEigFalse4.npy +0 -0
  33. acoular-24.3/acoular/tests/reference_data/BeamformerEigTrue1.npy +0 -0
  34. acoular-24.3/acoular/tests/reference_data/BeamformerEigTrue2.npy +0 -0
  35. acoular-24.3/acoular/tests/reference_data/BeamformerEigTrue3.npy +0 -0
  36. acoular-24.3/acoular/tests/reference_data/BeamformerEigTrue4.npy +0 -0
  37. acoular-24.3/acoular/tests/reference_data/BeamformerGIB.npy +0 -0
  38. acoular-24.3/acoular/tests/reference_data/BeamformerSODIX.npy +0 -0
  39. acoular-24.3/acoular/tests/reference_data/FiltFiltOctave__.npy +0 -0
  40. acoular-24.3/acoular/tests/reference_data/FiltFiltOctave_band_100_0_fraction_Thirdoctave_.npy +0 -0
  41. acoular-24.3/acoular/tests/reference_data/FiltFreqWeight_weight_A_.npy +0 -0
  42. acoular-24.3/acoular/tests/reference_data/FiltFreqWeight_weight_C_.npy +0 -0
  43. acoular-24.3/acoular/tests/reference_data/FiltFreqWeight_weight_Z_.npy +0 -0
  44. acoular-24.3/acoular/tests/reference_data/FiltOctave__.npy +0 -0
  45. acoular-24.3/acoular/tests/reference_data/FiltOctave_band_100_0_fraction_Thirdoctave_.npy +0 -0
  46. acoular-24.3/acoular/tests/reference_data/Filter__.npy +0 -0
  47. acoular-24.3/acoular/tests/reference_data/OctaveFilterBank__.npy +0 -0
  48. acoular-24.3/acoular/tests/reference_data/TimeAverage__.npy +0 -0
  49. acoular-24.3/acoular/tests/reference_data/TimeCumAverage__.npy +0 -0
  50. acoular-24.3/acoular/tests/reference_data/TimeExpAverage_weight_F_.npy +0 -0
  51. acoular-24.3/acoular/tests/reference_data/TimeExpAverage_weight_I_.npy +0 -0
  52. acoular-24.3/acoular/tests/reference_data/TimeExpAverage_weight_S_.npy +0 -0
  53. acoular-24.3/acoular/tests/reference_data/TimeInOut__.npy +0 -0
  54. acoular-24.3/acoular/tests/reference_data/TimePower__.npy +0 -0
  55. acoular-24.3/acoular/tests/reference_data/TimeReverse__.npy +0 -0
  56. {acoular-23.6 → acoular-24.3}/acoular/tests/test_beamformer_results.py +39 -8
  57. acoular-24.3/acoular/tests/test_grid.py +92 -0
  58. acoular-24.3/acoular/tests/test_integrate.py +102 -0
  59. acoular-24.3/acoular/tests/test_tprocess.py +90 -0
  60. {acoular-23.6 → acoular-24.3}/acoular/tests/test_traj_beamformer_results.py +2 -2
  61. {acoular-23.6 → acoular-24.3}/acoular/tfastfuncs.py +24 -25
  62. {acoular-23.6 → acoular-24.3}/acoular/tools.py +144 -2
  63. {acoular-23.6 → acoular-24.3}/acoular/tprocess.py +91 -102
  64. {acoular-23.6 → acoular-24.3}/acoular/version.py +2 -2
  65. {acoular-23.6 → acoular-24.3}/docs/source/conf.py +1 -1
  66. {acoular-23.6 → acoular-24.3}/docs/source/get_started/index.rst +4 -3
  67. {acoular-23.6 → acoular-24.3}/docs/source/index.rst +3 -1
  68. {acoular-23.6 → acoular-24.3}/docs/source/news/index.rst +35 -1
  69. acoular-24.3/examples/benchmark/run_benchmarks.py +67 -0
  70. acoular-24.3/examples/benchmark/test_beamformerfreq.py +47 -0
  71. acoular-24.3/examples/benchmark/test_delayandsum.py +90 -0
  72. acoular-24.3/examples/benchmark/test_dist_mat.py +21 -0
  73. {acoular-23.6 → acoular-24.3}/examples/example_airfoil_in_open_jet_beamforming.py +1 -1
  74. acoular-24.3/examples/example_evaluate.py +84 -0
  75. acoular-24.3/examples/example_filter.py +50 -0
  76. {acoular-23.6 → acoular-24.3}/pyproject.toml +12 -4
  77. {acoular-23.6 → acoular-24.3}/recipe.local/meta.yaml +6 -1
  78. acoular-23.6/PKG-INFO +0 -82
  79. acoular-23.6/README.md +0 -17
  80. acoular-23.6/README.rst +0 -25
  81. acoular-23.6/acoular/fastFuncs.py +0 -961
  82. acoular-23.6/acoular/tests/reference_data/BeamformerCMF.npy +0 -0
  83. acoular-23.6/acoular/tests/reference_data/BeamformerCleantSqTraj.npy +0 -0
  84. acoular-23.6/acoular/tests/reference_data/BeamformerCleantTraj.npy +0 -0
  85. acoular-23.6/acoular/tests/reference_data/BeamformerGIB.npy +0 -0
  86. acoular-23.6/acoular/tests/test_tprocess.py +0 -38
  87. {acoular-23.6 → acoular-24.3}/.gitlab-ci.yml +0 -0
  88. {acoular-23.6 → acoular-24.3}/.travis.yml +0 -0
  89. {acoular-23.6 → acoular-24.3}/AUTHORS.rst +0 -0
  90. {acoular-23.6 → acoular-24.3}/MANIFEST.in +0 -0
  91. {acoular-23.6 → acoular-24.3}/acoular/calib.py +0 -0
  92. {acoular-23.6 → acoular-24.3}/acoular/demo/__init__.py +0 -0
  93. {acoular-23.6 → acoular-24.3}/acoular/demo/acoular_demo.py +0 -0
  94. {acoular-23.6 → acoular-24.3}/acoular/fileimport.py +0 -0
  95. {acoular-23.6 → acoular-24.3}/acoular/h5cache.py +0 -0
  96. {acoular-23.6 → acoular-24.3}/acoular/h5files.py +0 -0
  97. {acoular-23.6 → acoular-24.3}/acoular/internal.py +0 -0
  98. {acoular-23.6 → acoular-24.3}/acoular/microphones.py +0 -0
  99. {acoular-23.6 → acoular-24.3}/acoular/nidaqimport.py +0 -0
  100. {acoular-23.6 → acoular-24.3}/acoular/sdinput.py +0 -0
  101. {acoular-23.6 → acoular-24.3}/acoular/signals.py +0 -0
  102. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerBase.npy +0 -0
  103. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerCapon.npy +0 -0
  104. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerClean.npy +0 -0
  105. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerCleansc.npy +0 -0
  106. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerCleant.npy +0 -0
  107. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerCleantSq.npy +0 -0
  108. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerDamas.npy +0 -0
  109. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerDamasPlus.npy +0 -0
  110. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerEig.npy +0 -0
  111. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerFunctional.npy +0 -0
  112. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerGridlessOrth.npy +0 -0
  113. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerMusic.npy +0 -0
  114. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerOrth.npy +0 -0
  115. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerTime.npy +0 -0
  116. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerTimeSq.npy +0 -0
  117. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerTimeSqTraj.npy +0 -0
  118. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerTimeTraj.npy +0 -0
  119. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/Environment.npy +0 -0
  120. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/Example1_numerical_values_testsum.h5 +0 -0
  121. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/GeneralFlowEnvironment.npy +0 -0
  122. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/OpenJet.npy +0 -0
  123. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/PointSource.npy +0 -0
  124. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/PowerSpectra_csm.npy +0 -0
  125. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/PowerSpectra_ev.npy +0 -0
  126. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/RotatingFlow.npy +0 -0
  127. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/SlotJet.npy +0 -0
  128. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/UniformFlowEnvironment.npy +0 -0
  129. {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/beamformer_traj_time_data.h5 +0 -0
  130. {acoular-23.6 → acoular-24.3}/acoular/tests/run_tests.sh +0 -0
  131. {acoular-23.6 → acoular-24.3}/acoular/tests/run_tests_osx.sh +0 -0
  132. {acoular-23.6 → acoular-24.3}/acoular/tests/test.npy +0 -0
  133. {acoular-23.6 → acoular-24.3}/acoular/tests/test_classes.py +0 -0
  134. {acoular-23.6 → acoular-24.3}/acoular/tests/test_digest.py +0 -0
  135. {acoular-23.6 → acoular-24.3}/acoular/tests/test_environments.py +0 -0
  136. {acoular-23.6 → acoular-24.3}/acoular/tests/test_example1.py +0 -0
  137. {acoular-23.6 → acoular-24.3}/acoular/tests/test_signals.py +0 -0
  138. {acoular-23.6 → acoular-24.3}/acoular/tests/test_sources.py +0 -0
  139. {acoular-23.6 → acoular-24.3}/acoular/tests/test_spectra.py +0 -0
  140. {acoular-23.6 → acoular-24.3}/acoular/tests/test_timecache.py +0 -0
  141. {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/OvernightTestcasesBeamformer_nMics32_nGridPoints100_nFreqs4_nTrials10.png +0 -0
  142. {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/cythonBeamformer.pyx +0 -0
  143. {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/mainForCython.py +0 -0
  144. {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/mainForParallelJit.py +0 -0
  145. {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/setupCythonOpenMP.py +0 -0
  146. {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/sharedFunctions.py +0 -0
  147. {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/timeOverNMics_AllImportantMethods.png +0 -0
  148. {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/timeOverNMics_faverage.png +0 -0
  149. {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/vglOptimierungFAverage.py +0 -0
  150. {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/vglOptimierungGaussSeidel.py +0 -0
  151. {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/vglOptimierungR_BEAMFULL_INVERSE.py +0 -0
  152. {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/vglOptimierungR_BEAM_OS.py +0 -0
  153. {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/whatsFastestWayFor_absASquared.py +0 -0
  154. {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/functionalBeamformer.py +0 -0
  155. {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/precisionTest.py +0 -0
  156. {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/validationOfBeamformerFuncsPOSTAcoularIntegration.py +0 -0
  157. {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/validationOfBeamformerFuncsPREeAcoularIntegration.py +0 -0
  158. {acoular-23.6 → acoular-24.3}/acoular/traitsviews.py +0 -0
  159. {acoular-23.6 → acoular-24.3}/acoular/trajectory.py +0 -0
  160. {acoular-23.6 → acoular-24.3}/acoular/xml/HW90D240_f10.xml +0 -0
  161. {acoular-23.6 → acoular-24.3}/acoular/xml/W90_D105_f10.xml +0 -0
  162. {acoular-23.6 → acoular-24.3}/acoular/xml/acousticam_2c.xml +0 -0
  163. {acoular-23.6 → acoular-24.3}/acoular/xml/acousticam_4c.xml +0 -0
  164. {acoular-23.6 → acoular-24.3}/acoular/xml/array38.xml +0 -0
  165. {acoular-23.6 → acoular-24.3}/acoular/xml/array92x.xml +0 -0
  166. {acoular-23.6 → acoular-24.3}/acoular/xml/array_56.xml +0 -0
  167. {acoular-23.6 → acoular-24.3}/acoular/xml/array_56_10_9.xml +0 -0
  168. {acoular-23.6 → acoular-24.3}/acoular/xml/array_56_bomb.xml +0 -0
  169. {acoular-23.6 → acoular-24.3}/acoular/xml/array_56_v2.xml +0 -0
  170. {acoular-23.6 → acoular-24.3}/acoular/xml/array_64.xml +0 -0
  171. {acoular-23.6 → acoular-24.3}/acoular/xml/array_84_10_9.xml +0 -0
  172. {acoular-23.6 → acoular-24.3}/acoular/xml/array_84_bomb_v3.xml +0 -0
  173. {acoular-23.6 → acoular-24.3}/acoular/xml/calib_vw_ring32.xml +0 -0
  174. {acoular-23.6 → acoular-24.3}/acoular/xml/gfai_ring32.xml +0 -0
  175. {acoular-23.6 → acoular-24.3}/acoular/xml/minidsp_uma16.xml +0 -0
  176. {acoular-23.6 → acoular-24.3}/acoular/xml/tub_vogel64.xml +0 -0
  177. {acoular-23.6 → acoular-24.3}/build_conda.sh +0 -0
  178. {acoular-23.6 → acoular-24.3}/docs/Makefile +0 -0
  179. {acoular-23.6 → acoular-24.3}/docs/source/_static/Acoular_logo.png +0 -0
  180. {acoular-23.6 → acoular-24.3}/docs/source/_static/Airfoil_selfnoise_3d.png +0 -0
  181. {acoular-23.6 → acoular-24.3}/docs/source/_static/acoular_logo.ico +0 -0
  182. {acoular-23.6 → acoular-24.3}/docs/source/_static/airfoil_leading_edge_noise.png +0 -0
  183. {acoular-23.6 → acoular-24.3}/docs/source/_static/no_image.png +0 -0
  184. {acoular-23.6 → acoular-24.3}/docs/source/_static/pantograph_noise_3d.png +0 -0
  185. {acoular-23.6 → acoular-24.3}/docs/source/_templates/autosummary/class.rst +0 -0
  186. {acoular-23.6 → acoular-24.3}/docs/source/_templates/autosummary/module.rst +0 -0
  187. {acoular-23.6 → acoular-24.3}/docs/source/_themes/haikuac/layout.html +0 -0
  188. {acoular-23.6 → acoular-24.3}/docs/source/_themes/haikuac/static/alert_info_32.png +0 -0
  189. {acoular-23.6 → acoular-24.3}/docs/source/_themes/haikuac/static/alert_warning_32.png +0 -0
  190. {acoular-23.6 → acoular-24.3}/docs/source/_themes/haikuac/static/bg-page.png +0 -0
  191. {acoular-23.6 → acoular-24.3}/docs/source/_themes/haikuac/static/bullet_orange.png +0 -0
  192. {acoular-23.6 → acoular-24.3}/docs/source/_themes/haikuac/static/haikuac.css_t +0 -0
  193. {acoular-23.6 → acoular-24.3}/docs/source/_themes/haikuac/theme.conf +0 -0
  194. {acoular-23.6 → acoular-24.3}/docs/source/api_ref/index.rst +0 -0
  195. {acoular-23.6 → acoular-24.3}/docs/source/examples/example_3D_beamforming.rst +0 -0
  196. {acoular-23.6 → acoular-24.3}/docs/source/examples/example_3D_beamforming_1.png +0 -0
  197. {acoular-23.6 → acoular-24.3}/docs/source/examples/example_airfoil_in_open_jet_beamforming.rst +0 -0
  198. {acoular-23.6 → acoular-24.3}/docs/source/examples/example_airfoil_in_open_jet_beamforming_1.png +0 -0
  199. {acoular-23.6 → acoular-24.3}/docs/source/examples/example_airfoil_in_open_jet_beamforming_2.png +0 -0
  200. {acoular-23.6 → acoular-24.3}/docs/source/examples/example_airfoil_in_open_jet_beamforming_3.png +0 -0
  201. {acoular-23.6 → acoular-24.3}/docs/source/examples/example_airfoil_in_open_jet_cmf.rst +0 -0
  202. {acoular-23.6 → acoular-24.3}/docs/source/examples/example_airfoil_in_open_jet_cmf_1.png +0 -0
  203. {acoular-23.6 → acoular-24.3}/docs/source/examples/example_airfoil_in_open_jet_steering_vectors.rst +0 -0
  204. {acoular-23.6 → acoular-24.3}/docs/source/examples/example_airfoil_in_open_jet_steering_vectors_1.png +0 -0
  205. {acoular-23.6 → acoular-24.3}/docs/source/examples/example_airfoil_in_open_jet_steering_vectors_2.png +0 -0
  206. {acoular-23.6 → acoular-24.3}/docs/source/examples/example_rotating_point_source.rst +0 -0
  207. {acoular-23.6 → acoular-24.3}/docs/source/examples/example_rotating_point_source_1.png +0 -0
  208. {acoular-23.6 → acoular-24.3}/docs/source/examples/example_rotating_point_source_2.png +0 -0
  209. {acoular-23.6 → acoular-24.3}/docs/source/examples/example_rotating_point_source_3.png +0 -0
  210. {acoular-23.6 → acoular-24.3}/docs/source/examples/index.rst +0 -0
  211. {acoular-23.6 → acoular-24.3}/docs/source/gen_rst.py +0 -0
  212. {acoular-23.6 → acoular-24.3}/docs/source/get_started/array64.png +0 -0
  213. {acoular-23.6 → acoular-24.3}/docs/source/get_started/array64_py3colormap.png +0 -0
  214. {acoular-23.6 → acoular-24.3}/docs/source/get_started/map_three_sources.png +0 -0
  215. {acoular-23.6 → acoular-24.3}/docs/source/get_started/three_source_py3_colormap.png +0 -0
  216. {acoular-23.6 → acoular-24.3}/docs/source/install/index.rst +0 -0
  217. {acoular-23.6 → acoular-24.3}/docs/source/literature/index.rst +0 -0
  218. {acoular-23.6 → acoular-24.3}/docs/source/requirements.txt +0 -0
  219. {acoular-23.6 → acoular-24.3}/examples/README.txt +0 -0
  220. {acoular-23.6 → acoular-24.3}/examples/acoular_demo.py +0 -0
  221. {acoular-23.6 → acoular-24.3}/examples/basic_beamformer_example.py +0 -0
  222. {acoular-23.6 → acoular-24.3}/examples/example_3D_beamforming.py +0 -0
  223. {acoular-23.6 → acoular-24.3}/examples/example_GenericSignal.py +0 -0
  224. {acoular-23.6 → acoular-24.3}/examples/example_SampleSplitter_bufferhandling.py +0 -0
  225. {acoular-23.6 → acoular-24.3}/examples/example_SampleSplitter_multithreading.py +0 -0
  226. {acoular-23.6 → acoular-24.3}/examples/example_airfoil_in_open_jet_cmf.py +0 -0
  227. {acoular-23.6 → acoular-24.3}/examples/example_airfoil_in_open_jet_steering_vectors.py +0 -0
  228. {acoular-23.6 → acoular-24.3}/examples/example_airfoil_in_open_jet_time_beamforming.py +0 -0
  229. {acoular-23.6 → acoular-24.3}/examples/example_calib.xml +0 -0
  230. {acoular-23.6 → acoular-24.3}/examples/example_data.h5 +0 -0
  231. {acoular-23.6 → acoular-24.3}/examples/example_power_spectra_import.py +0 -0
  232. {acoular-23.6 → acoular-24.3}/examples/example_rotating_point_source.py +0 -0
  233. {acoular-23.6 → acoular-24.3}/examples/example_sectors_and_intergration.py +0 -0
  234. {acoular-23.6 → acoular-24.3}/examples/example_tools.py +0 -0
  235. {acoular-23.6 → acoular-24.3}/examples/three_sources.py +0 -0
  236. {acoular-23.6 → acoular-24.3}/noxfile.py +0 -0
  237. {acoular-23.6 → acoular-24.3}/recipe.local/run_test.sh +0 -0
  238. {acoular-23.6 → acoular-24.3}/scripts/plot_examples.py +0 -0
@@ -0,0 +1,43 @@
1
+ name: Build docs and deploy
2
+
3
+ #DEPLOY NOTE: This workflow will only deploy the docs when a workflow is manually triggered from the main branch via github!
4
+
5
+ on:
6
+ pull_request:
7
+ branches: [ master ] # build docs as additional test on PRs to main
8
+ workflow_dispatch:
9
+ branches: [ '*' ] # allow manual trigger for all branches
10
+
11
+ permissions:
12
+ contents: write
13
+
14
+ jobs:
15
+ sphinx:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - name: Setup Python 3.11
20
+ uses: actions/setup-python@v4
21
+ with:
22
+ python-version: '3.11'
23
+ - name: Install dependencies
24
+ run: |
25
+ sudo apt-get install graphviz
26
+ sudo apt-get install libportaudio2
27
+ python -m pip install --upgrade pip
28
+ pip install ".[dev]"
29
+ - name: Build docs
30
+ run: |
31
+ cd docs
32
+ make html
33
+ - name: Deploy docs
34
+ uses: peaceiris/actions-gh-pages@v3
35
+ if: ${{ github.event_name =='workflow_dispatch' && github.ref == 'refs/heads/master' }}
36
+ with:
37
+ publish_branch: gh-pages
38
+ github_token: ${{ secrets.GITHUB_TOKEN }}
39
+ publish_dir: ./docs/build/html/
40
+ cname: www.acoular.org
41
+ force_orphan: true # This allows you to make your publish branch with only the latest commit.
42
+ enable_jekyll: false
43
+
@@ -20,9 +20,9 @@ jobs:
20
20
  python-version: ['3.7', '3.8', '3.9','3.10','3.11']
21
21
 
22
22
  steps:
23
- - uses: actions/checkout@v2
23
+ - uses: actions/checkout@v4
24
24
  - name: Set up Python ${{ matrix.python-version }}
25
- uses: actions/setup-python@v2
25
+ uses: actions/setup-python@v4
26
26
  with:
27
27
  python-version: ${{ matrix.python-version }}
28
28
  - name: Install acoular
@@ -5,6 +5,7 @@
5
5
  *~
6
6
  examples/three_sources.h5
7
7
  examples/all_bf.sav
8
+ examples/benchmark/results/
8
9
  MANIFEST
9
10
 
10
11
  # ignore the build directories
@@ -0,0 +1,47 @@
1
+ {
2
+ "metadata": {
3
+ "title": "Acoular – Acoustic testing and source mapping software",
4
+ "license": "BSD",
5
+ "keywords": [
6
+ "acoustics",
7
+ "beamforming",
8
+ "microphone array"
9
+ ],
10
+ "upload_type": "software",
11
+ "creators": [
12
+ {
13
+ "affiliation": "Department of Engineering Acoustics, TU Berlin",
14
+ "name": "Sarradj, Ennes",
15
+ "orcid": "0000-0002-0274-8456"
16
+ },
17
+ {
18
+ "affiliation": "Department of Engineering Acoustics, TU Berlin",
19
+ "name": "Herold, Gert",
20
+ "orcid": "0000-0001-5284-051X"
21
+ },
22
+ {
23
+ "affiliation": "Department of Engineering Acoustics, TU Berlin",
24
+ "name": "Kujawski, Adam",
25
+ "orcid": "0000-0003-4579-8813"
26
+ },
27
+ {
28
+ "affiliation": "Department of Engineering Acoustics, TU Berlin",
29
+ "name": "Jekosch, Simon"
30
+ },
31
+ {
32
+ "affiliation": "Department of Engineering Acoustics, TU Berlin",
33
+ "name": "Pelling, Art J. R.",
34
+ "orcid": "0000-0003-3228-6069"
35
+
36
+ },
37
+ {
38
+ "affiliation": "Department of Engineering Acoustics, TU Berlin",
39
+ "name": "Czuchaj, Mikolaj"
40
+ },
41
+ {
42
+ "affiliation": "Department of Engineering Acoustics, TU Berlin",
43
+ "name": "Gensch, Tom"
44
+ }
45
+ ]
46
+ }
47
+ }
@@ -1,4 +1,4 @@
1
- Copyright (c) 2006-2021 The acoular developers.
1
+ Copyright (c) Acoular Development Team.
2
2
  All rights reserved.
3
3
 
4
4
 
acoular-24.3/PKG-INFO ADDED
@@ -0,0 +1,181 @@
1
+ Metadata-Version: 2.1
2
+ Name: acoular
3
+ Version: 24.3
4
+ Summary: Python library for acoustic beamforming
5
+ Project-URL: homepage, https://acoular.org
6
+ Project-URL: documentation, https://acoular.org
7
+ Project-URL: repository, https://github.com/acoular/acoular
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 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.
12
+
13
+
14
+ Redistribution and use in source and binary forms, with or without
15
+ modification, are permitted provided that the following conditions are met:
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.
26
+
27
+
28
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
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
33
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
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.
39
+ License-File: AUTHORS.rst
40
+ License-File: LICENSE
41
+ Keywords: acoustics,beamforming,microphone array
42
+ Classifier: Development Status :: 5 - Production/Stable
43
+ Classifier: Intended Audience :: Education
44
+ Classifier: Intended Audience :: Science/Research
45
+ Classifier: License :: OSI Approved :: BSD License
46
+ Classifier: Programming Language :: Python :: 3.7
47
+ Classifier: Programming Language :: Python :: 3.8
48
+ Classifier: Programming Language :: Python :: 3.9
49
+ Classifier: Programming Language :: Python :: 3.10
50
+ Classifier: Programming Language :: Python :: 3.11
51
+ Classifier: Topic :: Scientific/Engineering :: Physics
52
+ Requires-Python: <=11,>=3.7
53
+ Requires-Dist: numba
54
+ Requires-Dist: numpy
55
+ Requires-Dist: scikit-learn
56
+ Requires-Dist: scipy>=1.1.0
57
+ Requires-Dist: tables>=3.4.4
58
+ 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
+ Provides-Extra: full
69
+ Requires-Dist: matplotlib; extra == 'full'
70
+ Requires-Dist: pylops; extra == 'full'
71
+ Requires-Dist: sounddevice; extra == 'full'
72
+ Description-Content-Type: text/markdown
73
+
74
+ ![Acoular Logo](./docs/source/_static/Acoular_logo.png)
75
+
76
+ [![PyPI](https://img.shields.io/pypi/pyversions/acoular.svg)](https://pypi.org/project/acoular)
77
+ [![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)
79
+
80
+ # Acoular
81
+ Acoular is a Python module for acoustic beamforming that is distributed under the new BSD license.
82
+
83
+ It is aimed at applications in acoustic testing. Multichannel data recorded by a microphone array can be processed and analyzed in order to generate mappings of sound source distributions. The maps (acoustic photographs) can then be used to locate sources of interest and to characterize them using their spectra.
84
+
85
+ # Features
86
+ - frequency domain beamforming algorithms: delay & sum, Capon (adaptive), MUSIC, functional beamforming, eigenvalue beamforming
87
+ - frequency domain deconvolution algorithms: DAMAS, DAMAS+, Clean, CleanSC, orthogonal deconvolution
88
+ - frequency domain inverse methods: CMF (covariance matrix fitting), general inverse beamforming, SODIX
89
+ - time domain methods: delay & sum beamforming, CleanT deconvolution
90
+ - time domain methods applicable for moving source with arbitrary trajectory (linear, circular, arbitrarily 3D curved),
91
+ - frequency domain methods for rotating sources via virtual array rotation for arbitrary arrays and with different interpolation techniques
92
+ - 1D, 2D and 3D mapping grids for all methods
93
+ - gridless option for orthogonal deconvolution
94
+ - four different built-in steering vector formulations
95
+ - arbitrary stationary background flow can be considered for all methods
96
+ - efficient cross spectral matrix computation
97
+ - flexible modular time domain processing: n-th octave band filters, fast, slow, and impulse weighting, A-, C-, and Z-weighting, filter bank, zero delay filters
98
+ - time domain simulation of array microphone signals from fixed and arbitrarily moving sources in arbitrary flow
99
+ - fully object-oriented interface
100
+ - lazy evaluation: while processing blocks are set up at any time, (expensive) computations are only performed when needed
101
+ - intelligent and transparent caching: computed results are automatically saved and loaded on the next run to avoid unnecessary re-computation
102
+ - parallel (multithreaded) implementation with Numba for most algorithms
103
+ - easily extendable with new algorithms
104
+
105
+ # License
106
+ Acoular is licensed under the BSD 3-clause. See [LICENSE](LICENSE)
107
+
108
+ # Citing
109
+
110
+ If you use Acoular for academic work, please consider citing our
111
+ [publication](https://doi.org/10.1016/j.apacoust.2016.09.015):
112
+
113
+ Ennes Sarradj, Gert Herold,
114
+ A Python framework for microphone array data processing,
115
+ Applied Acoustics, Volume 116, 2017, Pages 50-58
116
+
117
+ # Dependencies
118
+ Acoular runs under Linux, Windows and MacOS and needs Numpy, Scipy, Traits, scikit-learn, pytables, Numba packages available.
119
+ Matplotlib is needed for some of the examples.
120
+
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).
122
+
123
+ # Installation
124
+
125
+ Acoular can be installed via [conda](https://docs.conda.io/en/latest/), which is also part of the [Anaconda Python distribution](https://www.anaconda.com/). It is recommended to install into a dedicated [conda environment](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html). After activating this environment, run
126
+
127
+ conda install -c acoular acoular
128
+
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.
130
+
131
+ 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
+
133
+ pip install acoular
134
+
135
+ For more detailed install instructions see the [documentation](http://acoular.org/install/index.html).
136
+
137
+ # 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).
141
+
142
+ The Acoular [blog](https://acoular.github.io/blog/) contains some tutorials.
143
+
144
+ Problems, suggestions and success using Acoular may be reported via the [acoular-users](https://groups.google.com/forum/#!forum/acoular-users) discussion forum.
145
+
146
+ # Example
147
+ This reads data from 64 microphone channels and computes a beamforming map for the 8kHz third octave band:
148
+
149
+ ```python
150
+ from os import path
151
+ import acoular
152
+ from matplotlib.pylab import figure, plot, axis, imshow, colorbar, show
153
+
154
+ # this file contains the microphone coordinates
155
+ micgeofile = path.join(path.split(acoular.__file__)[0],'xml','array_64.xml')
156
+ # set up object managing the microphone coordinates
157
+ mg = acoular.MicGeom( from_file=micgeofile )
158
+ # set up object managing the microphone array data (usually from measurement)
159
+ ts = acoular.TimeSamples( name='three_sources.h5' )
160
+ # set up object managing the cross spectral matrix computation
161
+ ps = acoular.PowerSpectra( time_data=ts, block_size=128, window='Hanning' )
162
+ # set up object managing the mapping grid
163
+ rg = acoular.RectGrid( x_min=-0.2, x_max=0.2, y_min=-0.2, y_max=0.2, z=0.3, \
164
+ increment=0.01 )
165
+ # set up steering vector, implicitely contains also the standard quiescent
166
+ # environment with standard speed of sound
167
+ st = acoular.SteeringVector( grid = rg, mics=mg )
168
+ # set up the object managing the delay & sum beamformer
169
+ bb = acoular.BeamformerBase( freq_data=ps, steer=st )
170
+ # request the result in the 8kHz third octave band from approriate FFT-Lines
171
+ # this starts the actual computation (data intake, FFT, Welch CSM, beamforming)
172
+ pm = bb.synthetic( 8000, 3 )
173
+ # compute the sound pressure level
174
+ Lm = acoular.L_p( pm )
175
+ # plot the map
176
+ imshow( Lm.T, origin='lower', vmin=Lm.max()-10, extent=rg.extend(), \
177
+ interpolation='bicubic')
178
+ colorbar()
179
+ ```
180
+
181
+ ![result](./docs/source/get_started/three_source_py3_colormap.png)
acoular-24.3/README.md ADDED
@@ -0,0 +1,108 @@
1
+ ![Acoular Logo](./docs/source/_static/Acoular_logo.png)
2
+
3
+ [![PyPI](https://img.shields.io/pypi/pyversions/acoular.svg)](https://pypi.org/project/acoular)
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)
6
+
7
+ # Acoular
8
+ Acoular is a Python module for acoustic beamforming that is distributed under the new BSD license.
9
+
10
+ It is aimed at applications in acoustic testing. Multichannel data recorded by a microphone array can be processed and analyzed in order to generate mappings of sound source distributions. The maps (acoustic photographs) can then be used to locate sources of interest and to characterize them using their spectra.
11
+
12
+ # Features
13
+ - frequency domain beamforming algorithms: delay & sum, Capon (adaptive), MUSIC, functional beamforming, eigenvalue beamforming
14
+ - frequency domain deconvolution algorithms: DAMAS, DAMAS+, Clean, CleanSC, orthogonal deconvolution
15
+ - frequency domain inverse methods: CMF (covariance matrix fitting), general inverse beamforming, SODIX
16
+ - 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
+ - frequency domain methods for rotating sources via virtual array rotation for arbitrary arrays and with different interpolation techniques
19
+ - 1D, 2D and 3D mapping grids for all methods
20
+ - gridless option for orthogonal deconvolution
21
+ - four different built-in steering vector formulations
22
+ - arbitrary stationary background flow can be considered for all methods
23
+ - efficient cross spectral matrix computation
24
+ - flexible modular time domain processing: n-th octave band filters, fast, slow, and impulse weighting, A-, C-, and Z-weighting, filter bank, zero delay filters
25
+ - time domain simulation of array microphone signals from fixed and arbitrarily moving sources in arbitrary flow
26
+ - fully object-oriented interface
27
+ - lazy evaluation: while processing blocks are set up at any time, (expensive) computations are only performed when needed
28
+ - intelligent and transparent caching: computed results are automatically saved and loaded on the next run to avoid unnecessary re-computation
29
+ - parallel (multithreaded) implementation with Numba for most algorithms
30
+ - easily extendable with new algorithms
31
+
32
+ # License
33
+ Acoular is licensed under the BSD 3-clause. See [LICENSE](LICENSE)
34
+
35
+ # Citing
36
+
37
+ If you use Acoular for academic work, please consider citing our
38
+ [publication](https://doi.org/10.1016/j.apacoust.2016.09.015):
39
+
40
+ Ennes Sarradj, Gert Herold,
41
+ A Python framework for microphone array data processing,
42
+ Applied Acoustics, Volume 116, 2017, Pages 50-58
43
+
44
+ # Dependencies
45
+ Acoular runs under Linux, Windows and MacOS and needs Numpy, Scipy, Traits, scikit-learn, pytables, Numba packages available.
46
+ Matplotlib is needed for some of the examples.
47
+
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).
49
+
50
+ # Installation
51
+
52
+ Acoular can be installed via [conda](https://docs.conda.io/en/latest/), which is also part of the [Anaconda Python distribution](https://www.anaconda.com/). It is recommended to install into a dedicated [conda environment](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html). After activating this environment, run
53
+
54
+ conda install -c acoular acoular
55
+
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.
57
+
58
+ 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
+
60
+ pip install acoular
61
+
62
+ For more detailed install instructions see the [documentation](http://acoular.org/install/index.html).
63
+
64
+ # 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).
68
+
69
+ The Acoular [blog](https://acoular.github.io/blog/) contains some tutorials.
70
+
71
+ Problems, suggestions and success using Acoular may be reported via the [acoular-users](https://groups.google.com/forum/#!forum/acoular-users) discussion forum.
72
+
73
+ # Example
74
+ This reads data from 64 microphone channels and computes a beamforming map for the 8kHz third octave band:
75
+
76
+ ```python
77
+ from os import path
78
+ import acoular
79
+ from matplotlib.pylab import figure, plot, axis, imshow, colorbar, show
80
+
81
+ # this file contains the microphone coordinates
82
+ micgeofile = path.join(path.split(acoular.__file__)[0],'xml','array_64.xml')
83
+ # set up object managing the microphone coordinates
84
+ mg = acoular.MicGeom( from_file=micgeofile )
85
+ # set up object managing the microphone array data (usually from measurement)
86
+ ts = acoular.TimeSamples( name='three_sources.h5' )
87
+ # set up object managing the cross spectral matrix computation
88
+ ps = acoular.PowerSpectra( time_data=ts, block_size=128, window='Hanning' )
89
+ # set up object managing the mapping grid
90
+ rg = acoular.RectGrid( x_min=-0.2, x_max=0.2, y_min=-0.2, y_max=0.2, z=0.3, \
91
+ increment=0.01 )
92
+ # set up steering vector, implicitely contains also the standard quiescent
93
+ # environment with standard speed of sound
94
+ st = acoular.SteeringVector( grid = rg, mics=mg )
95
+ # set up the object managing the delay & sum beamformer
96
+ bb = acoular.BeamformerBase( freq_data=ps, steer=st )
97
+ # request the result in the 8kHz third octave band from approriate FFT-Lines
98
+ # this starts the actual computation (data intake, FFT, Welch CSM, beamforming)
99
+ pm = bb.synthetic( 8000, 3 )
100
+ # compute the sound pressure level
101
+ Lm = acoular.L_p( pm )
102
+ # plot the map
103
+ imshow( Lm.T, origin='lower', vmin=Lm.max()-10, extent=rg.extend(), \
104
+ interpolation='bicubic')
105
+ colorbar()
106
+ ```
107
+
108
+ ![result](./docs/source/get_started/three_source_py3_colormap.png)
@@ -44,14 +44,14 @@ from .microphones import MicGeom
44
44
  from .spectra import BaseSpectra, FFTSpectra, PowerSpectra, PowerSpectraImport, PowerSpectra as EigSpectra, synthetic
45
45
 
46
46
  from .fbeamform import BeamformerBase, BeamformerCapon, BeamformerEig, \
47
- BeamformerMusic, BeamformerDamas, BeamformerDamasPlus, BeamformerOrth,BeamformerCleansc, \
47
+ BeamformerMusic, BeamformerDamas, BeamformerDamasPlus, BeamformerOrth, BeamformerCleansc, \
48
48
  BeamformerCMF,BeamformerSODIX, BeamformerClean, BeamformerFunctional, BeamformerGIB, L_p, integrate, \
49
49
  PointSpreadFunction, SteeringVector, BeamformerAdaptiveGrid, BeamformerGridlessOrth
50
50
 
51
51
  from .sources import PointSource, MovingPointSource, \
52
52
  TimeSamples, MaskedTimeSamples, PointSourceDipole, UncorrelatedNoiseSource, \
53
53
  SourceMixer, SphericalHarmonicSource, LineSource, MovingPointSourceDipole, \
54
- MovingLineSource
54
+ MovingLineSource, PointSourceConvolve
55
55
  from .signals import SineGenerator, WNoiseGenerator, SignalGenerator,\
56
56
  PNoiseGenerator, GenericSignalGenerator, FiltWNoiseGenerator
57
57
 
@@ -12,7 +12,43 @@
12
12
  config
13
13
  """
14
14
 
15
- from os import path, mkdir
15
+ from os import path, mkdir, environ
16
+ from warnings import warn
17
+ import sys
18
+
19
+ # When numpy is using OpenBLAS then it runs with OPENBLAS_NUM_THREADS which may lead to
20
+ # overcommittment when called from within numba jitted function that run on
21
+ # NUMBA_NUM_THREADS. If overcommitted, things get extremely! slow. Therefore we make an
22
+ # attempt to avoid this situation. The main problem is that OPENBLAS_NUM_THREADS is
23
+ # only respected once numpy starts. Later on, it cannot be changed.
24
+
25
+ # we check if numpy already loaded
26
+ if 'numpy' in sys.modules:
27
+ # numpy is loaded
28
+ # temporarily route stdout to string
29
+ import io
30
+ import numpy
31
+ orig_stdout = sys.stdout
32
+ temp_stdout = io.StringIO()
33
+ sys.stdout = temp_stdout
34
+ numpy.show_config()
35
+ sys.stdout = orig_stdout
36
+ # check if it uses OpenBLAS or another library
37
+ if 'openblas' in temp_stdout.getvalue().lower():
38
+ # it's OpenBLAS, set numba threads=1 to avoid overcommittment
39
+ import numba
40
+ numba.set_num_threads(1)
41
+ warn("We detected that Numpy is already loaded and uses OpenBLAS. Because "
42
+ "this conflicts with Numba parallel execution, we disable parallel "
43
+ "execution for now and processing might be slower. To speed up, "
44
+ "either import Numpy after Acoular or set environment variable "
45
+ "OPENBLAS_NUM_THREADS=1 before start of the program.",
46
+ UserWarning, stacklevel = 2)
47
+ else:
48
+ # numpy is not loaded
49
+ environ['OPENBLAS_NUM_THREADS'] = "1"
50
+
51
+ # this loads numpy, so we have to defer loading until OpenBLAS check is done
16
52
  from traits.api import Trait, Bool, Str, Property, HasStrictTraits
17
53
 
18
54
  class Config(HasStrictTraits):
@@ -18,9 +18,9 @@
18
18
 
19
19
  """
20
20
  import numba as nb
21
- from numpy import array, isscalar, float32, float64, newaxis, zeros, \
21
+ from numpy import array, isscalar, float32, float64, newaxis, \
22
22
  sqrt, arange, pi, exp, sin, cos, arccos, zeros_like, empty, dot, hstack, \
23
- vstack, identity, cross, sign, arctan2, matmul, sum, lexsort, stack, nonzero, append, outer, asarray
23
+ vstack, identity, cross, sign, arctan2, matmul, sum, ascontiguousarray
24
24
  from numpy.linalg.linalg import norm
25
25
  from scipy.integrate import ode
26
26
  from scipy.interpolate import LinearNDInterpolator
@@ -28,10 +28,10 @@ from scipy.spatial import ConvexHull
28
28
  from traits.api import HasPrivateTraits, Float, Property, Int, \
29
29
  CArray, cached_property, Trait, Dict
30
30
 
31
- from .internal import digest, ldigest
31
+ from .internal import digest
32
32
 
33
- f64ro = nb.types.Array(nb.types.float64,2,'A',readonly=True)
34
- f32ro = nb.types.Array(nb.types.float32,2,'A',readonly=True)
33
+ f64ro = nb.types.Array(nb.types.float64,2,'C',readonly=True)
34
+ f32ro = nb.types.Array(nb.types.float32,2,'C',readonly=True)
35
35
 
36
36
  @nb.njit([(f64ro, f64ro), (f64ro, f32ro), (f32ro, f64ro),(f32ro, f32ro)],
37
37
  cache=True, fastmath=True)
@@ -47,11 +47,17 @@ def dist_mat(gpos,mpos):
47
47
  """
48
48
  _,M = mpos.shape
49
49
  _,N = gpos.shape
50
- rm = empty((N,M),dtype=float64)
50
+ rm = empty((N,M),dtype=gpos.dtype)
51
+ TWO = rm.dtype.type(2.0) # make sure to have a float32 or float 64 literal
52
+ m0 = mpos[0]
53
+ m1 = mpos[1]
54
+ m2 = mpos[2]
51
55
  for n in range(N):
52
- g = gpos[:,n]
56
+ g0 = gpos[0,n]
57
+ g1 = gpos[1,n]
58
+ g2 = gpos[2,n]
53
59
  for m in range(M):
54
- rm[n,m] = sqrt((g[0] - mpos[0,m])**2 + (g[1] - mpos[1,m])**2 + (g[2] - mpos[2,m])**2)
60
+ rm[n,m] = sqrt((g0 - m0[m])**TWO + (g1 - m1[m])**TWO + (g2 - m2[m])**TWO)
55
61
  return rm
56
62
 
57
63
 
@@ -156,7 +162,7 @@ class Environment( HasPrivateTraits ):
156
162
  """
157
163
  if isscalar(mpos):
158
164
  mpos = array((0, 0, 0), dtype = float64)[:, newaxis]
159
- rm = dist_mat(gpos,mpos)
165
+ rm = dist_mat(ascontiguousarray(gpos),ascontiguousarray(mpos))
160
166
  # mpos = mpos[:, newaxis, :]
161
167
  # rmv = gpos[:, :, newaxis]-mpos
162
168
  # rm = sum(rmv*rmv, 0)**0.5