Skip to content

Commit dcd2e4a

Browse files
committed
Making snakemake logger more robust
1 parent 46a18ac commit dcd2e4a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

wfcommons/wfinstances/logs/snakemake.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ def _build_file_map(self):
163163
if task_idx not in self.task_input_files and task_idx not in self.task_output_files:
164164
continue
165165
full_path = row[1]
166+
# clean path
167+
full_path = full_path.split(" (access:")[0].strip()
166168
if self.path_prefix_rewrite:
167169
full_path = full_path.replace(self.path_prefix_rewrite[0], self.path_prefix_rewrite[1])
168170
file_size = os.path.getsize(f"{full_path}")

0 commit comments

Comments
 (0)