diff --git a/pipe/pipe.py b/pipe/pipe.py index a71ec99..fe7148c 100644 --- a/pipe/pipe.py +++ b/pipe/pipe.py @@ -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))