Skip to content

Commit

Permalink
Merge pull request #117 from ihmeuw-msca/bugfix/dependency
Browse files Browse the repository at this point in the history
Input existence checking
  • Loading branch information
zhengp0 authored Dec 11, 2024
2 parents aa648a9 + da86484 commit e83a13a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/onemod/io/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,10 @@ def check_exists(
FIXME: Assumes pipeline has been built (so paths are absolute)
"""
item_names = item_names or set(self.items.keys())
upstream_stages = upstream_stages or self.dependencies
if item_names is None:
item_names = set(self.items.keys())
if upstream_stages is None:
upstream_stages = self.dependencies

missing_items = {}
for item_name in item_names:
Expand Down

0 comments on commit e83a13a

Please sign in to comment.