acoular 25.1__py3-none-any.whl → 25.3.post1__py3-none-any.whl

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/aiaa/aiaa.py CHANGED
@@ -170,7 +170,7 @@ class MicAIAABenchmark(MicGeom):
170
170
  file = File(filter=['*.h5'], exists=True, desc='name of the h5 file containing the microphone geometry')
171
171
 
172
172
  @on_trait_change('file')
173
- def import_mpos(self):
173
+ def _import_mpos(self):
174
174
  """Import the microphone positions from .h5 file.
175
175
  Called when :attr:`basename` changes.
176
176
  """
@@ -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')