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.
- acoular-24.3/.github/workflows/build_docs.yml +43 -0
- {acoular-23.6 → acoular-24.3}/.github/workflows/python-package.yml +2 -2
- {acoular-23.6 → acoular-24.3}/.gitignore +1 -0
- acoular-24.3/.zenodo.json +47 -0
- {acoular-23.6 → acoular-24.3}/LICENSE +1 -1
- acoular-24.3/PKG-INFO +181 -0
- acoular-24.3/README.md +108 -0
- {acoular-23.6 → acoular-24.3}/acoular/__init__.py +2 -2
- {acoular-23.6 → acoular-24.3}/acoular/configuration.py +37 -1
- {acoular-23.6 → acoular-24.3}/acoular/environments.py +15 -9
- acoular-24.3/acoular/fastFuncs.py +688 -0
- {acoular-23.6 → acoular-24.3}/acoular/fbeamform.py +168 -109
- {acoular-23.6 → acoular-24.3}/acoular/grids.py +33 -114
- {acoular-23.6 → acoular-24.3}/acoular/sources.py +77 -3
- {acoular-23.6 → acoular-24.3}/acoular/spectra.py +2 -2
- {acoular-23.6 → acoular-24.3}/acoular/tbeamform.py +15 -8
- acoular-24.3/acoular/tests/reference_data/BeamformerBaseFalse1.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerBaseFalse2.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerBaseFalse3.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerBaseFalse4.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerBaseTrue1.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerBaseTrue2.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerBaseTrue3.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerBaseTrue4.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerCMFLassoLarsBIC.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerCMFNNLS.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerCleantSqTraj.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerCleantTraj.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerEigFalse1.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerEigFalse2.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerEigFalse3.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerEigFalse4.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerEigTrue1.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerEigTrue2.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerEigTrue3.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerEigTrue4.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerGIB.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/BeamformerSODIX.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/FiltFiltOctave__.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/FiltFiltOctave_band_100_0_fraction_Thirdoctave_.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/FiltFreqWeight_weight_A_.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/FiltFreqWeight_weight_C_.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/FiltFreqWeight_weight_Z_.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/FiltOctave__.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/FiltOctave_band_100_0_fraction_Thirdoctave_.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/Filter__.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/OctaveFilterBank__.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/TimeAverage__.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/TimeCumAverage__.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/TimeExpAverage_weight_F_.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/TimeExpAverage_weight_I_.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/TimeExpAverage_weight_S_.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/TimeInOut__.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/TimePower__.npy +0 -0
- acoular-24.3/acoular/tests/reference_data/TimeReverse__.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/test_beamformer_results.py +39 -8
- acoular-24.3/acoular/tests/test_grid.py +92 -0
- acoular-24.3/acoular/tests/test_integrate.py +102 -0
- acoular-24.3/acoular/tests/test_tprocess.py +90 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/test_traj_beamformer_results.py +2 -2
- {acoular-23.6 → acoular-24.3}/acoular/tfastfuncs.py +24 -25
- {acoular-23.6 → acoular-24.3}/acoular/tools.py +144 -2
- {acoular-23.6 → acoular-24.3}/acoular/tprocess.py +91 -102
- {acoular-23.6 → acoular-24.3}/acoular/version.py +2 -2
- {acoular-23.6 → acoular-24.3}/docs/source/conf.py +1 -1
- {acoular-23.6 → acoular-24.3}/docs/source/get_started/index.rst +4 -3
- {acoular-23.6 → acoular-24.3}/docs/source/index.rst +3 -1
- {acoular-23.6 → acoular-24.3}/docs/source/news/index.rst +35 -1
- acoular-24.3/examples/benchmark/run_benchmarks.py +67 -0
- acoular-24.3/examples/benchmark/test_beamformerfreq.py +47 -0
- acoular-24.3/examples/benchmark/test_delayandsum.py +90 -0
- acoular-24.3/examples/benchmark/test_dist_mat.py +21 -0
- {acoular-23.6 → acoular-24.3}/examples/example_airfoil_in_open_jet_beamforming.py +1 -1
- acoular-24.3/examples/example_evaluate.py +84 -0
- acoular-24.3/examples/example_filter.py +50 -0
- {acoular-23.6 → acoular-24.3}/pyproject.toml +12 -4
- {acoular-23.6 → acoular-24.3}/recipe.local/meta.yaml +6 -1
- acoular-23.6/PKG-INFO +0 -82
- acoular-23.6/README.md +0 -17
- acoular-23.6/README.rst +0 -25
- acoular-23.6/acoular/fastFuncs.py +0 -961
- acoular-23.6/acoular/tests/reference_data/BeamformerCMF.npy +0 -0
- acoular-23.6/acoular/tests/reference_data/BeamformerCleantSqTraj.npy +0 -0
- acoular-23.6/acoular/tests/reference_data/BeamformerCleantTraj.npy +0 -0
- acoular-23.6/acoular/tests/reference_data/BeamformerGIB.npy +0 -0
- acoular-23.6/acoular/tests/test_tprocess.py +0 -38
- {acoular-23.6 → acoular-24.3}/.gitlab-ci.yml +0 -0
- {acoular-23.6 → acoular-24.3}/.travis.yml +0 -0
- {acoular-23.6 → acoular-24.3}/AUTHORS.rst +0 -0
- {acoular-23.6 → acoular-24.3}/MANIFEST.in +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/calib.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/demo/__init__.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/demo/acoular_demo.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/fileimport.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/h5cache.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/h5files.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/internal.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/microphones.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/nidaqimport.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/sdinput.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/signals.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerBase.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerCapon.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerClean.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerCleansc.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerCleant.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerCleantSq.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerDamas.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerDamasPlus.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerEig.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerFunctional.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerGridlessOrth.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerMusic.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerOrth.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerTime.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerTimeSq.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerTimeSqTraj.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/BeamformerTimeTraj.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/Environment.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/Example1_numerical_values_testsum.h5 +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/GeneralFlowEnvironment.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/OpenJet.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/PointSource.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/PowerSpectra_csm.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/PowerSpectra_ev.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/RotatingFlow.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/SlotJet.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/UniformFlowEnvironment.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/reference_data/beamformer_traj_time_data.h5 +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/run_tests.sh +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/run_tests_osx.sh +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/test.npy +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/test_classes.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/test_digest.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/test_environments.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/test_example1.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/test_signals.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/test_sources.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/test_spectra.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/test_timecache.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/OvernightTestcasesBeamformer_nMics32_nGridPoints100_nFreqs4_nTrials10.png +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/cythonBeamformer.pyx +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/mainForCython.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/mainForParallelJit.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/setupCythonOpenMP.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/sharedFunctions.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/timeOverNMics_AllImportantMethods.png +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/timeOverNMics_faverage.png +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/vglOptimierungFAverage.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/vglOptimierungGaussSeidel.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/vglOptimierungR_BEAMFULL_INVERSE.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/vglOptimierungR_BEAM_OS.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/SpeedComparison/whatsFastestWayFor_absASquared.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/functionalBeamformer.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/precisionTest.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/validationOfBeamformerFuncsPOSTAcoularIntegration.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/tests/unsupported/validationOfBeamformerFuncsPREeAcoularIntegration.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/traitsviews.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/trajectory.py +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/xml/HW90D240_f10.xml +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/xml/W90_D105_f10.xml +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/xml/acousticam_2c.xml +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/xml/acousticam_4c.xml +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/xml/array38.xml +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/xml/array92x.xml +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/xml/array_56.xml +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/xml/array_56_10_9.xml +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/xml/array_56_bomb.xml +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/xml/array_56_v2.xml +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/xml/array_64.xml +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/xml/array_84_10_9.xml +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/xml/array_84_bomb_v3.xml +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/xml/calib_vw_ring32.xml +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/xml/gfai_ring32.xml +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/xml/minidsp_uma16.xml +0 -0
- {acoular-23.6 → acoular-24.3}/acoular/xml/tub_vogel64.xml +0 -0
- {acoular-23.6 → acoular-24.3}/build_conda.sh +0 -0
- {acoular-23.6 → acoular-24.3}/docs/Makefile +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/_static/Acoular_logo.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/_static/Airfoil_selfnoise_3d.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/_static/acoular_logo.ico +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/_static/airfoil_leading_edge_noise.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/_static/no_image.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/_static/pantograph_noise_3d.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/_templates/autosummary/class.rst +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/_templates/autosummary/module.rst +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/_themes/haikuac/layout.html +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/_themes/haikuac/static/alert_info_32.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/_themes/haikuac/static/alert_warning_32.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/_themes/haikuac/static/bg-page.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/_themes/haikuac/static/bullet_orange.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/_themes/haikuac/static/haikuac.css_t +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/_themes/haikuac/theme.conf +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/api_ref/index.rst +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/examples/example_3D_beamforming.rst +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/examples/example_3D_beamforming_1.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/examples/example_airfoil_in_open_jet_beamforming.rst +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/examples/example_airfoil_in_open_jet_beamforming_1.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/examples/example_airfoil_in_open_jet_beamforming_2.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/examples/example_airfoil_in_open_jet_beamforming_3.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/examples/example_airfoil_in_open_jet_cmf.rst +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/examples/example_airfoil_in_open_jet_cmf_1.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/examples/example_airfoil_in_open_jet_steering_vectors.rst +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/examples/example_airfoil_in_open_jet_steering_vectors_1.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/examples/example_airfoil_in_open_jet_steering_vectors_2.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/examples/example_rotating_point_source.rst +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/examples/example_rotating_point_source_1.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/examples/example_rotating_point_source_2.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/examples/example_rotating_point_source_3.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/examples/index.rst +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/gen_rst.py +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/get_started/array64.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/get_started/array64_py3colormap.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/get_started/map_three_sources.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/get_started/three_source_py3_colormap.png +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/install/index.rst +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/literature/index.rst +0 -0
- {acoular-23.6 → acoular-24.3}/docs/source/requirements.txt +0 -0
- {acoular-23.6 → acoular-24.3}/examples/README.txt +0 -0
- {acoular-23.6 → acoular-24.3}/examples/acoular_demo.py +0 -0
- {acoular-23.6 → acoular-24.3}/examples/basic_beamformer_example.py +0 -0
- {acoular-23.6 → acoular-24.3}/examples/example_3D_beamforming.py +0 -0
- {acoular-23.6 → acoular-24.3}/examples/example_GenericSignal.py +0 -0
- {acoular-23.6 → acoular-24.3}/examples/example_SampleSplitter_bufferhandling.py +0 -0
- {acoular-23.6 → acoular-24.3}/examples/example_SampleSplitter_multithreading.py +0 -0
- {acoular-23.6 → acoular-24.3}/examples/example_airfoil_in_open_jet_cmf.py +0 -0
- {acoular-23.6 → acoular-24.3}/examples/example_airfoil_in_open_jet_steering_vectors.py +0 -0
- {acoular-23.6 → acoular-24.3}/examples/example_airfoil_in_open_jet_time_beamforming.py +0 -0
- {acoular-23.6 → acoular-24.3}/examples/example_calib.xml +0 -0
- {acoular-23.6 → acoular-24.3}/examples/example_data.h5 +0 -0
- {acoular-23.6 → acoular-24.3}/examples/example_power_spectra_import.py +0 -0
- {acoular-23.6 → acoular-24.3}/examples/example_rotating_point_source.py +0 -0
- {acoular-23.6 → acoular-24.3}/examples/example_sectors_and_intergration.py +0 -0
- {acoular-23.6 → acoular-24.3}/examples/example_tools.py +0 -0
- {acoular-23.6 → acoular-24.3}/examples/three_sources.py +0 -0
- {acoular-23.6 → acoular-24.3}/noxfile.py +0 -0
- {acoular-23.6 → acoular-24.3}/recipe.local/run_test.sh +0 -0
- {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@
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
24
|
- name: Set up Python ${{ matrix.python-version }}
|
|
25
|
-
uses: actions/setup-python@
|
|
25
|
+
uses: actions/setup-python@v4
|
|
26
26
|
with:
|
|
27
27
|
python-version: ${{ matrix.python-version }}
|
|
28
28
|
- name: Install acoular
|
|
@@ -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
|
+
}
|
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
|
+

|
|
75
|
+
|
|
76
|
+
[](https://pypi.org/project/acoular)
|
|
77
|
+
[](https://pypi.org/project/acoular)
|
|
78
|
+
[](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
|
+

|
acoular-24.3/README.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/acoular)
|
|
4
|
+
[](https://pypi.org/project/acoular)
|
|
5
|
+
[](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
|
+

|
|
@@ -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,
|
|
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,
|
|
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
|
|
31
|
+
from .internal import digest
|
|
32
32
|
|
|
33
|
-
f64ro = nb.types.Array(nb.types.float64,2,'
|
|
34
|
-
f32ro = nb.types.Array(nb.types.float32,2,'
|
|
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=
|
|
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
|
-
|
|
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((
|
|
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
|