Skip to content

Commit

Permalink
Merge 0f99da3 into 94785b9
Browse files Browse the repository at this point in the history
  • Loading branch information
kilianyp committed Nov 3, 2018
2 parents 94785b9 + 0f99da3 commit 1db049c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sacred/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def _gather(self, func):
"""
for ingredient, _ in self.traverse_ingredients():
for name, item in func(ingredient):
if ingredient == self:
if ingredient == self and len(self.path) != 0:
name = name[len(self.path) + 1:]
yield name, item

Expand Down

0 comments on commit 1db049c

Please sign in to comment.