From b3ece204eb1868e5034d545a071350389f75687b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hadrien=20Gourl=C3=A9?= Date: Thu, 15 Feb 2024 10:03:09 +0100 Subject: [PATCH] ignore case in moel names --- iss/generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iss/generator.py b/iss/generator.py index 90a53ca..f948d7b 100644 --- a/iss/generator.py +++ b/iss/generator.py @@ -402,8 +402,8 @@ def load_error_model(mode, seed, model, fragment_length, fragment_length_sd, sto if model is None: logger.error("--model is required in --mode kde") sys.exit(1) - elif model in precomputed_error_models: - npz = precomputed_error_models[model] + elif model.lower() in precomputed_error_models: + npz = precomputed_error_models[model.lower()] else: npz = model err_mod = kde.KDErrorModel(npz, fragment_length, fragment_length_sd, store_mutations)