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/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
- )