From 330ed763c1cee94dc5b9d4967af34caf3e3e907c Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 28 Sep 2023 11:56:09 -0400 Subject: [PATCH] Convert assertion into a warning that we would not use dicom dir template option To avoid users confusion etc. Ref: https://github.com/nipy/heudiconv/issues/707#issuecomment-1738371656 --- heudiconv/main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/heudiconv/main.py b/heudiconv/main.py index 5672cd72..97c3be05 100644 --- a/heudiconv/main.py +++ b/heudiconv/main.py @@ -370,7 +370,12 @@ def workflow( ) if command: - assert dicom_dir_template is None + if dicom_dir_template: + lgr.warning( + f"DICOM directory template {dicom_dir_template!r} was provided but will be ignored since " + f"commands do not care about it ATM" + ) + process_extra_commands( outdir, command,