Skip to content

Commit

Permalink
fix: Check for both files or folder to build database
Browse files Browse the repository at this point in the history
  • Loading branch information
matinnuhamunada committed Aug 12, 2023
1 parent 00fffce commit b0385a1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions workflow/Database
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ error_message = " * Has the jobs from the main workflow finished?\n * Check by r
for main_pipeline_outputs in final_outputs:
if type(main_pipeline_outputs) == list:
for main_pipeline_output in main_pipeline_outputs:
assert Path(main_pipeline_output).is_file(), f"\nMissing file: {main_pipeline_output}.\n{error_message}\n"
else:
assert Path(main_pipeline_outputs).is_file(), f"\nMissing file: {main_pipeline_outputs}.\n{error_message}\n"
main_pipeline_output = Path(main_pipeline_output)
assert main_pipeline_output.is_file() or main_pipeline_output.is_dir(), f"\nMissing file: {main_pipeline_output}.\n{error_message}\n"
elif type(main_pipeline_outputs) == str:
main_pipeline_output = Path(main_pipeline_outputs)
assert main_pipeline_output.is_file() or main_pipeline_output.is_dir(), f"\nMissing file: {main_pipeline_outputs}.\n{error_message}\n"

for name in PEP_PROJECTS.keys():
bgcflow_rules = [r for r in PEP_PROJECTS[name].config['rules'].keys() if PEP_PROJECTS[name].config['rules'][r]]
Expand Down

0 comments on commit b0385a1

Please sign in to comment.