acoular 25.1__tar.gz → 25.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 (65) hide show
  1. {acoular-25.1 → acoular-25.3}/PKG-INFO +6 -5
  2. {acoular-25.1 → acoular-25.3}/README.md +5 -4
  3. {acoular-25.1 → acoular-25.3}/acoular/demo/acoular_demo.py +5 -5
  4. acoular-25.3/acoular/environments.py +941 -0
  5. acoular-25.3/acoular/fprocess.py +478 -0
  6. acoular-25.3/acoular/grids.py +1589 -0
  7. acoular-25.3/acoular/microphones.py +262 -0
  8. acoular-25.3/acoular/process.py +975 -0
  9. acoular-25.3/acoular/signals.py +673 -0
  10. acoular-25.3/acoular/sources.py +2455 -0
  11. {acoular-25.1 → acoular-25.3}/acoular/spectra.py +280 -128
  12. acoular-25.3/acoular/trajectory.py +197 -0
  13. {acoular-25.1 → acoular-25.3}/acoular/version.py +2 -2
  14. acoular-25.1/acoular/environments.py +0 -701
  15. acoular-25.1/acoular/fprocess.py +0 -376
  16. acoular-25.1/acoular/grids.py +0 -1178
  17. acoular-25.1/acoular/microphones.py +0 -130
  18. acoular-25.1/acoular/process.py +0 -771
  19. acoular-25.1/acoular/signals.py +0 -378
  20. acoular-25.1/acoular/sources.py +0 -1594
  21. acoular-25.1/acoular/trajectory.py +0 -121
  22. {acoular-25.1 → acoular-25.3}/.gitignore +0 -0
  23. {acoular-25.1 → acoular-25.3}/AUTHORS.rst +0 -0
  24. {acoular-25.1 → acoular-25.3}/LICENSE +0 -0
  25. {acoular-25.1 → acoular-25.3}/acoular/__init__.py +0 -0
  26. {acoular-25.1 → acoular-25.3}/acoular/aiaa/__init__.py +0 -0
  27. {acoular-25.1 → acoular-25.3}/acoular/aiaa/aiaa.py +0 -0
  28. {acoular-25.1 → acoular-25.3}/acoular/base.py +0 -0
  29. {acoular-25.1 → acoular-25.3}/acoular/calib.py +0 -0
  30. {acoular-25.1 → acoular-25.3}/acoular/configuration.py +0 -0
  31. {acoular-25.1 → acoular-25.3}/acoular/demo/__init__.py +0 -0
  32. {acoular-25.1 → acoular-25.3}/acoular/deprecation.py +0 -0
  33. {acoular-25.1 → acoular-25.3}/acoular/fastFuncs.py +0 -0
  34. {acoular-25.1 → acoular-25.3}/acoular/fbeamform.py +0 -0
  35. {acoular-25.1 → acoular-25.3}/acoular/h5cache.py +0 -0
  36. {acoular-25.1 → acoular-25.3}/acoular/h5files.py +0 -0
  37. {acoular-25.1 → acoular-25.3}/acoular/internal.py +0 -0
  38. {acoular-25.1 → acoular-25.3}/acoular/sdinput.py +0 -0
  39. {acoular-25.1 → acoular-25.3}/acoular/tbeamform.py +0 -0
  40. {acoular-25.1 → acoular-25.3}/acoular/tfastfuncs.py +0 -0
  41. {acoular-25.1 → acoular-25.3}/acoular/tools/__init__.py +0 -0
  42. {acoular-25.1 → acoular-25.3}/acoular/tools/helpers.py +0 -0
  43. {acoular-25.1 → acoular-25.3}/acoular/tools/metrics.py +0 -0
  44. {acoular-25.1 → acoular-25.3}/acoular/tools/utils.py +0 -0
  45. {acoular-25.1 → acoular-25.3}/acoular/tprocess.py +0 -0
  46. {acoular-25.1 → acoular-25.3}/acoular/traitsviews.py +0 -0
  47. {acoular-25.1 → acoular-25.3}/acoular/xml/HW90D240_f10.xml +0 -0
  48. {acoular-25.1 → acoular-25.3}/acoular/xml/W90_D105_f10.xml +0 -0
  49. {acoular-25.1 → acoular-25.3}/acoular/xml/acousticam_2c.xml +0 -0
  50. {acoular-25.1 → acoular-25.3}/acoular/xml/acousticam_4c.xml +0 -0
  51. {acoular-25.1 → acoular-25.3}/acoular/xml/array38.xml +0 -0
  52. {acoular-25.1 → acoular-25.3}/acoular/xml/array92x.xml +0 -0
  53. {acoular-25.1 → acoular-25.3}/acoular/xml/array_56.xml +0 -0
  54. {acoular-25.1 → acoular-25.3}/acoular/xml/array_56_10_9.xml +0 -0
  55. {acoular-25.1 → acoular-25.3}/acoular/xml/array_56_bomb.xml +0 -0
  56. {acoular-25.1 → acoular-25.3}/acoular/xml/array_56_v2.xml +0 -0
  57. {acoular-25.1 → acoular-25.3}/acoular/xml/array_64.xml +0 -0
  58. {acoular-25.1 → acoular-25.3}/acoular/xml/array_84_10_9.xml +0 -0
  59. {acoular-25.1 → acoular-25.3}/acoular/xml/array_84_bomb_v3.xml +0 -0
  60. {acoular-25.1 → acoular-25.3}/acoular/xml/calib_vw_ring32.xml +0 -0
  61. {acoular-25.1 → acoular-25.3}/acoular/xml/gfai_ring32.xml +0 -0
  62. {acoular-25.1 → acoular-25.3}/acoular/xml/minidsp_uma-16.xml +0 -0
  63. {acoular-25.1 → acoular-25.3}/acoular/xml/minidsp_uma-16_mirrored.xml +0 -0
  64. {acoular-25.1 → acoular-25.3}/acoular/xml/tub_vogel64.xml +0 -0
  65. {acoular-25.1 → acoular-25.3}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: acoular
3
- Version: 25.1
3
+ Version: 25.3
4
4
  Summary: Python library for acoustic beamforming
5
5
  Project-URL: homepage, https://acoular.org
6
6
  Project-URL: documentation, https://acoular.org
@@ -197,12 +197,13 @@ If you are interested in contributing, have a look at the [CONTRIBUTING.md](CONT
197
197
  This reads data from 64 microphone channels and computes a beamforming map for the 8kHz third octave band:
198
198
 
199
199
  ```python
200
- from os.path import join, split
200
+ from pathlib import Path
201
+
201
202
  import acoular as ac
202
203
  import matplotlib.pylab as plt
203
204
 
204
205
  # this file contains the microphone coordinates
205
- micgeofile = join(split(ac.__file__)[0],'xml','array_64.xml')
206
+ micgeofile = Path(ac.__file__).parent / 'xml' / 'array_64.xml'
206
207
  # set up object managing the microphone coordinates
207
208
  mg = ac.MicGeom( file=micgeofile )
208
209
  # generate test data, in real life this would come from an array measurement
@@ -214,7 +215,7 @@ ps = ac.PowerSpectra( source=ts, block_size=128, window='Hanning' )
214
215
  # alternatively, you can use the in-memory Mixer object directly:
215
216
  # ps = ac.PowerSpectra( source=p, block_size=128, window='Hanning' )
216
217
  # set up object managing the mapping grid
217
- rg = ac.RectGrid( x_min=-0.2, x_max=0.2, y_min=-0.2, y_max=0.2, z=0.3, \
218
+ rg = ac.RectGrid( x_min=-0.2, x_max=0.2, y_min=-0.2, y_max=0.2, z=-0.3, \
218
219
  increment=0.01 )
219
220
  # set up steering vector, implicitely contains also the standard quiescent
220
221
  # environment with standard speed of sound
@@ -229,7 +230,7 @@ Lm = ac.L_p( pm )
229
230
  # plot the map
230
231
  plt.imshow( Lm.T, origin='lower', vmin=Lm.max()-10, extent=rg.extend(), \
231
232
  interpolation='bicubic')
232
- plt.title(f'Beamformer (base) for 3 sources measured for 8000 Hz')
233
+ plt.title('Beamformer (base) for 3 sources measured for 8000 Hz')
233
234
  plt.xlabel('x in m')
234
235
  plt.ylabel('y in m')
235
236
  plt.colorbar(label=r'$L_p$')
@@ -87,12 +87,13 @@ If you are interested in contributing, have a look at the [CONTRIBUTING.md](CONT
87
87
  This reads data from 64 microphone channels and computes a beamforming map for the 8kHz third octave band:
88
88
 
89
89
  ```python
90
- from os.path import join, split
90
+ from pathlib import Path
91
+
91
92
  import acoular as ac
92
93
  import matplotlib.pylab as plt
93
94
 
94
95
  # this file contains the microphone coordinates
95
- micgeofile = join(split(ac.__file__)[0],'xml','array_64.xml')
96
+ micgeofile = Path(ac.__file__).parent / 'xml' / 'array_64.xml'
96
97
  # set up object managing the microphone coordinates
97
98
  mg = ac.MicGeom( file=micgeofile )
98
99
  # generate test data, in real life this would come from an array measurement
@@ -104,7 +105,7 @@ ps = ac.PowerSpectra( source=ts, block_size=128, window='Hanning' )
104
105
  # alternatively, you can use the in-memory Mixer object directly:
105
106
  # ps = ac.PowerSpectra( source=p, block_size=128, window='Hanning' )
106
107
  # set up object managing the mapping grid
107
- rg = ac.RectGrid( x_min=-0.2, x_max=0.2, y_min=-0.2, y_max=0.2, z=0.3, \
108
+ rg = ac.RectGrid( x_min=-0.2, x_max=0.2, y_min=-0.2, y_max=0.2, z=-0.3, \
108
109
  increment=0.01 )
109
110
  # set up steering vector, implicitely contains also the standard quiescent
110
111
  # environment with standard speed of sound
@@ -119,7 +120,7 @@ Lm = ac.L_p( pm )
119
120
  # plot the map
120
121
  plt.imshow( Lm.T, origin='lower', vmin=Lm.max()-10, extent=rg.extend(), \
121
122
  interpolation='bicubic')
122
- plt.title(f'Beamformer (base) for 3 sources measured for 8000 Hz')
123
+ plt.title('Beamformer (base) for 3 sources measured for 8000 Hz')
123
124
  plt.xlabel('x in m')
124
125
  plt.ylabel('y in m')
125
126
  plt.colorbar(label=r'$L_p$')
@@ -45,9 +45,9 @@ def create_three_sources(mg, h5savefile='three_sources.h5'):
45
45
  n1 = ac.WNoiseGenerator(sample_freq=sfreq, num_samples=nsamples, seed=1)
46
46
  n2 = ac.WNoiseGenerator(sample_freq=sfreq, num_samples=nsamples, seed=2, rms=0.7)
47
47
  n3 = ac.WNoiseGenerator(sample_freq=sfreq, num_samples=nsamples, seed=3, rms=0.5)
48
- p1 = ac.PointSource(signal=n1, mics=mg, loc=(-0.1, -0.1, 0.3))
49
- p2 = ac.PointSource(signal=n2, mics=mg, loc=(0.15, 0, 0.3))
50
- p3 = ac.PointSource(signal=n3, mics=mg, loc=(0, 0.1, 0.3))
48
+ p1 = ac.PointSource(signal=n1, mics=mg, loc=(-0.1, -0.1, -0.3))
49
+ p2 = ac.PointSource(signal=n2, mics=mg, loc=(0.15, 0, -0.3))
50
+ p3 = ac.PointSource(signal=n3, mics=mg, loc=(0, 0.1, -0.3))
51
51
  pa = ac.Mixer(source=p1, sources=[p2, p3])
52
52
  if h5savefile:
53
53
  wh5 = ac.WriteH5(source=pa, file=h5savefile)
@@ -76,7 +76,7 @@ def run():
76
76
 
77
77
  ps = ac.PowerSpectra(source=pa, block_size=128, window='Hanning')
78
78
 
79
- rg = ac.RectGrid(x_min=-0.2, x_max=0.2, y_min=-0.2, y_max=0.2, z=0.3, increment=0.01)
79
+ rg = ac.RectGrid(x_min=-0.2, x_max=0.2, y_min=-0.2, y_max=0.2, z=-0.3, increment=0.01)
80
80
  st = ac.SteeringVector(grid=rg, mics=mg)
81
81
 
82
82
  bb = ac.BeamformerBase(freq_data=ps, steer=st)
@@ -84,7 +84,7 @@ def run():
84
84
  spl = ac.L_p(pm)
85
85
 
86
86
  if ac.config.have_matplotlib:
87
- from pylab import axis, colorbar, figure, imshow, plot, show
87
+ from matplotlib.pyplot import axis, colorbar, figure, imshow, plot, show
88
88
 
89
89
  # show map
90
90
  imshow(spl.T, origin='lower', vmin=spl.max() - 10, extent=rg.extend(), interpolation='bicubic')