Skip to content

Commit

Permalink
Update nm_bispectra.py
Browse files Browse the repository at this point in the history
  • Loading branch information
timonmerk authored Nov 21, 2023
1 parent 7249bfb commit ca18f9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py_neuromodulation/nm_bispectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ def calc_feature(self, data: np.array, features_compute: dict) -> dict:

waveshape = WaveShape(
data=fft_coeffs,
freqs=freqs.astype(int),
freqs=freqs,
sampling_freq=self.sfreq,
verbose=False,
)

waveshape.compute(f1s=tuple(self.f1s), f2s=tuple(self.f2s))
waveshape.compute(f1s=tuple(self.f1s[0], self.f1s[-1]), f2s=tuple(self.f2s[0], self.f2s[-1]))

bispectrum = np.squeeze(waveshape.results._data)

Expand Down

0 comments on commit ca18f9d

Please sign in to comment.