From c089082512be5a82efa2f049fb06ad7569ad8b56 Mon Sep 17 00:00:00 2001 From: Donald Campbell <125581724+donaldcampbelljr@users.noreply.github.com> Date: Wed, 13 Mar 2024 16:36:49 -0400 Subject: [PATCH] fix for https://github.com/pepkit/looper/issues/470 --- looper/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/looper/utils.py b/looper/utils.py index 265d8e3cb..aaee23336 100644 --- a/looper/utils.py +++ b/looper/utils.py @@ -95,7 +95,9 @@ def fetch_sample_flags(prj, sample, pl_name, flag_dir=None): return [ x for x in folder_contents - if os.path.splitext(x)[1] == ".flag" and os.path.basename(x).startswith(pl_name) + if os.path.splitext(x)[1] == ".flag" + and os.path.basename(x).startswith(pl_name) + and sample.sample_name in x ]