Skip to content

Commit

Permalink
ignore case in moel names
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienG committed Feb 15, 2024
1 parent ef4908a commit b3ece20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iss/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b3ece20

Please sign in to comment.