From d3c74bd8772d2ec37326eadcfc617dc341af41f5 Mon Sep 17 00:00:00 2001 From: Jordan DeKraker Date: Wed, 24 Jul 2024 11:56:28 -0400 Subject: [PATCH] Import patch (#314) * moved import to where it is needed --------- Co-authored-by: Jordan DeKraker --- hippunfold/workflow/rules/common.smk | 2 ++ hippunfold/workflow/rules/nnunet.smk | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hippunfold/workflow/rules/common.smk b/hippunfold/workflow/rules/common.smk index 6dc2fc60..00d174ff 100644 --- a/hippunfold/workflow/rules/common.smk +++ b/hippunfold/workflow/rules/common.smk @@ -1,3 +1,5 @@ +from appdirs import AppDirs + # take mean of all scans if >1, otherwise just copy the one scan def get_avg_or_cp_scans_cmd(wildcards, input, output): if len(input) > 1: diff --git a/hippunfold/workflow/rules/nnunet.smk b/hippunfold/workflow/rules/nnunet.smk index b9f20b69..a86a6623 100644 --- a/hippunfold/workflow/rules/nnunet.smk +++ b/hippunfold/workflow/rules/nnunet.smk @@ -1,5 +1,4 @@ import re -from appdirs import AppDirs def get_nnunet_input(wildcards):