acoular 25.4__py3-none-any.whl → 25.10__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/__init__.py +2 -4
- acoular/aiaa/aiaa.py +10 -10
- acoular/base.py +12 -34
- acoular/calib.py +20 -19
- acoular/configuration.py +3 -3
- acoular/demo/__init__.py +6 -1
- acoular/demo/acoular_demo.py +34 -10
- acoular/deprecation.py +10 -1
- acoular/environments.py +107 -117
- acoular/fastFuncs.py +16 -10
- acoular/fbeamform.py +300 -402
- acoular/fprocess.py +7 -33
- acoular/grids.py +228 -134
- acoular/h5cache.py +10 -4
- acoular/h5files.py +106 -9
- acoular/internal.py +4 -0
- acoular/microphones.py +22 -10
- acoular/process.py +7 -53
- acoular/sdinput.py +8 -5
- acoular/signals.py +29 -27
- acoular/sources.py +205 -335
- acoular/spectra.py +33 -43
- acoular/tbeamform.py +220 -199
- acoular/tools/helpers.py +52 -33
- acoular/tools/metrics.py +5 -10
- acoular/tprocess.py +1392 -647
- acoular/traitsviews.py +1 -3
- acoular/trajectory.py +5 -5
- acoular/version.py +4 -3
- {acoular-25.4.dist-info → acoular-25.10.dist-info}/METADATA +8 -4
- acoular-25.10.dist-info/RECORD +56 -0
- acoular-25.4.dist-info/RECORD +0 -56
- {acoular-25.4.dist-info → acoular-25.10.dist-info}/WHEEL +0 -0
- {acoular-25.4.dist-info → acoular-25.10.dist-info}/licenses/AUTHORS.rst +0 -0
- {acoular-25.4.dist-info → acoular-25.10.dist-info}/licenses/LICENSE +0 -0
acoular/fprocess.py
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
"""
|
|
5
5
|
Implements blockwise processing methods in the frequency domain.
|
|
6
6
|
|
|
7
|
+
.. inheritance-diagram::
|
|
8
|
+
acoular.fprocess
|
|
9
|
+
:top-classes:
|
|
10
|
+
acoular.base.Generator,
|
|
11
|
+
acoular.spectra.BaseSpectra
|
|
12
|
+
:parts: 1
|
|
13
|
+
|
|
7
14
|
.. autosummary::
|
|
8
15
|
:toctree: generated/
|
|
9
16
|
|
|
@@ -11,25 +18,20 @@ Implements blockwise processing methods in the frequency domain.
|
|
|
11
18
|
IRFFT
|
|
12
19
|
AutoPowerSpectra
|
|
13
20
|
CrossPowerSpectra
|
|
14
|
-
FFTSpectra
|
|
15
21
|
"""
|
|
16
22
|
|
|
17
|
-
from warnings import warn
|
|
18
|
-
|
|
19
23
|
import numpy as np
|
|
20
24
|
from scipy import fft
|
|
21
25
|
from traits.api import Bool, CArray, Enum, Instance, Int, Property, Union, cached_property
|
|
22
26
|
|
|
23
27
|
# acoular imports
|
|
24
28
|
from .base import SamplesGenerator, SpectraGenerator, SpectraOut, TimeOut
|
|
25
|
-
from .deprecation import deprecated_alias
|
|
26
29
|
from .fastFuncs import calcCSM
|
|
27
30
|
from .internal import digest
|
|
28
31
|
from .process import SamplesBuffer
|
|
29
32
|
from .spectra import BaseSpectra
|
|
30
33
|
|
|
31
34
|
|
|
32
|
-
@deprecated_alias({'numfreqs': 'num_freqs', 'numsamples': 'num_samples'}, read_only=True)
|
|
33
35
|
class RFFT(BaseSpectra, SpectraOut):
|
|
34
36
|
"""
|
|
35
37
|
Compute the one-sided Fast Fourier Transform (FFT) for real-valued multichannel time data.
|
|
@@ -170,7 +172,6 @@ class RFFT(BaseSpectra, SpectraOut):
|
|
|
170
172
|
yield fftdata[: j + 1]
|
|
171
173
|
|
|
172
174
|
|
|
173
|
-
@deprecated_alias({'numsamples': 'num_samples'}, read_only=True)
|
|
174
175
|
class IRFFT(TimeOut):
|
|
175
176
|
"""
|
|
176
177
|
Perform the inverse Fast Fourier Transform (IFFT) for one-sided multi-channel spectra.
|
|
@@ -350,7 +351,6 @@ class AutoPowerSpectra(SpectraOut):
|
|
|
350
351
|
yield ((temp * temp.conjugate()).real * scale).astype(self.precision)
|
|
351
352
|
|
|
352
353
|
|
|
353
|
-
@deprecated_alias({'numchannels': 'num_channels'}, read_only=True)
|
|
354
354
|
class CrossPowerSpectra(AutoPowerSpectra):
|
|
355
355
|
"""
|
|
356
356
|
Compute the complex-valued auto- and cross-power spectra from frequency-domain data.
|
|
@@ -450,29 +450,3 @@ class CrossPowerSpectra(AutoPowerSpectra):
|
|
|
450
450
|
csm_flat[i] = csm_lower[:, :nc].reshape(-1)
|
|
451
451
|
csm_upper[...] = 0 # calcCSM adds cumulative
|
|
452
452
|
yield csm_flat[: i + 1] * scale
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
class FFTSpectra(RFFT):
|
|
456
|
-
"""
|
|
457
|
-
Provide the one-sided Fast Fourier Transform (FFT) for multichannel time data.
|
|
458
|
-
|
|
459
|
-
.. deprecated:: 24.10
|
|
460
|
-
The :class:`~acoular.fprocess.FFTSpectra` class is deprecated and will be removed
|
|
461
|
-
in Acoular version 25.07. Please use :class:`~acoular.fprocess.RFFT` instead.
|
|
462
|
-
|
|
463
|
-
Alias for the :class:`~acoular.fprocess.RFFT` class, which computes the one-sided
|
|
464
|
-
Fast Fourier Transform (FFT) for multichannel time data.
|
|
465
|
-
|
|
466
|
-
Warnings
|
|
467
|
-
--------
|
|
468
|
-
This class remains temporarily available for backward compatibility but should not be used in
|
|
469
|
-
new implementations.
|
|
470
|
-
"""
|
|
471
|
-
|
|
472
|
-
def __init__(self, *args, **kwargs):
|
|
473
|
-
super().__init__(*args, **kwargs)
|
|
474
|
-
warn(
|
|
475
|
-
'Using FFTSpectra is deprecated and will be removed in Acoular version 25.07. Use class RFFT instead.',
|
|
476
|
-
DeprecationWarning,
|
|
477
|
-
stacklevel=2,
|
|
478
|
-
)
|