From 5a2ef44f2f47e23e50120a8130bb7d6095146c68 Mon Sep 17 00:00:00 2001 From: 120274 Date: Tue, 12 Sep 2023 23:04:52 +1000 Subject: [PATCH 1/2] missing import added --- CAT_pack/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CAT_pack/download.py b/CAT_pack/download.py index 175c964..e227802 100644 --- a/CAT_pack/download.py +++ b/CAT_pack/download.py @@ -8,7 +8,7 @@ import tarfile import urllib.request import urllib.parse - +import os import shared import check From 3850298d6a6a774c65588e9ee5936ba7f0a789a9 Mon Sep 17 00:00:00 2001 From: 120274 Date: Tue, 12 Sep 2023 23:05:25 +1000 Subject: [PATCH 2/2] resolves issue #74 --- CAT_pack/shared.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CAT_pack/shared.py b/CAT_pack/shared.py index cdda14c..12f4361 100644 --- a/CAT_pack/shared.py +++ b/CAT_pack/shared.py @@ -603,6 +603,7 @@ def expand_arguments(args): if "r" in args: setattr(args, "one_minus_r", (100 - args.r) / 100) + log_file = None if "out_prefix" in args: if not args.tmpdir: tmpdir = "{0}/".format(args.out_prefix.rsplit("/", 1)[0]) @@ -619,8 +620,6 @@ def expand_arguments(args): with open(log_file, "w") as outf1: pass - else: - log_file = None setattr(args, "log_file", log_file)