Skip to content

Commit

Permalink
Merge pull request #119 from Oxid15/patch
Browse files Browse the repository at this point in the history
Patch Concatenator's meta
  • Loading branch information
Oxid15 authored Oct 6, 2022
2 parents eb711aa + a20ba82 commit e746201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions cascade/data/concatenator.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,5 @@ def get_meta(self) -> List[Dict]:
Concatenator calls `get_meta()` of all its datasets
"""
meta = super().get_meta()
meta[0]['data'] = {}
for ds in self._datasets:
meta[0]['data'][repr(ds)] = ds.get_meta()
meta[0]['data'] = [ds.get_meta() for ds in self._datasets]
return meta
1 change: 1 addition & 0 deletions cascade/tests/test_concatenator.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def test_meta():

c = Concatenator([n1, n2], meta_prefix={'num': 1})
assert c.get_meta()[0]['num'] == 1
assert len(c.get_meta()[0]['data']) == 2


@pytest.mark.parametrize(
Expand Down

0 comments on commit e746201

Please sign in to comment.