Skip to content

Commit

Permalink
minor variable name change
Browse files Browse the repository at this point in the history
  • Loading branch information
lim185 committed Dec 6, 2024
1 parent 1e76eec commit 971044e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pipe/pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ def spectrogram_pipe(specpath: Path, namepattern: str, freq_samples: int)
freq_samples (int): Number of frequency samples in each spectrogram.
Returns:
spectrograms (np.ndarray): Stack of spectrograms (2D array).
spectrogram (np.ndarray): Stack of spectrograms (2D array).
"""

with h5py.File(specpath/namepattern.format(i), 'r') as f:
spectrograms = f['spectrogram'][:]
spectrogram = f['spectrogram'][:]

return spectrograms
return spectrogram

# EOF

0 comments on commit 971044e

Please sign in to comment.