Skip to content

Commit

Permalink
handle the case where the out path is exactly 'brick'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlue committed Mar 10, 2024
1 parent a4fd535 commit 1a16144
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion biobricks/dvc_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def fetch_outs(self, brick, prefixes=['brick/', 'data/']) -> tuple[list[dict], i
stages = [stage for stage in dvc_lock.get('stages', []).values()]
all_outs = [out for stage in stages for out in stage.get('outs', [])]

has_prefix = lambda x: any(x.get('path').startswith(prefix) for prefix in prefixes)
has_prefix = lambda x: any(x.get('path').startswith(prefix) for prefix in prefixes) or x.get('path') == 'brick'
outs = [o for o in all_outs if has_prefix(o)]
total_size = sum(o.get('size') for o in outs)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "biobricks"
version = "0.3.5"
version = "0.3.6"
authors = [
{ name="Thomas Luechtefeld", email="[email protected]" },
{ name="Jose A. Jaramillo", email="[email protected]" }
Expand Down

0 comments on commit 1a16144

Please sign in to comment.