From 923d4fcdf856c95e000aa21f8938b5135dd8d437 Mon Sep 17 00:00:00 2001 From: Yuk Kei Wan Date: Wed, 22 Nov 2023 03:41:42 +0000 Subject: [PATCH] fix --- xpore/test/test_diffmod.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/xpore/test/test_diffmod.py b/xpore/test/test_diffmod.py index bee2844..4d2a250 100644 --- a/xpore/test/test_diffmod.py +++ b/xpore/test/test_diffmod.py @@ -19,7 +19,16 @@ @pytest.fixture def diffmod_args(): class DiffmodArgs: - config = os.path.join(os.path.abspath(os.path.dirname(__file__)), "data/config.yml") + #config = os.path.join(os.path.abspath(os.path.dirname(__file__)), "data/config.yml") + outfile=open('neues_config.yml','w') + for ln in open(os.path.join(os.path.abspath(os.path.dirname(__file__)), "data/config.yml"),'r'): + if 'rep1' in ln: + ln=ln.split(':') + outfile.write(': '.join([ln[0], os.path.join(os.path.abspath(os.path.dirname(__file__)),ln[-1].strip())])) + else: + outfile.write(ln) + outfile.close() + config = os.path.join(os.getcwd(),'neues_config.yml') n_processes = 2 save_models = False resume = False