Skip to content

Commit

Permalink
forgor label
Browse files Browse the repository at this point in the history
  • Loading branch information
lim185 committed Dec 8, 2024
1 parent ab12407 commit 26c35cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pipe/pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def spectrogram_pipe_hdf5(self, specpath: Path, labels: list,
filename = namepattern.format(label)
meta = metadata[label]
with h5py.File(specpath/filename, 'r') as f:
meta["label"] = label
meta["spectrogram"] = f['spectrogram'][:].tolist()
spectrograms.append(Row(**meta))

Expand Down

0 comments on commit 26c35cc

Please sign in to comment.