From ec1e01c50246aa7bdb785231ab1dad5fd3806ba4 Mon Sep 17 00:00:00 2001 From: matterhorn103 <83813148+matterhorn103@users.noreply.github.com> Date: Wed, 27 Sep 2023 15:35:06 +0200 Subject: [PATCH] Fixed bug whereby OCF failed to be found because the "acronym" was less than 3 characters --- checknmr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checknmr.py b/checknmr.py index 1e9ccb7..3eafe8e 100644 --- a/checknmr.py +++ b/checknmr.py @@ -183,7 +183,7 @@ def check_nmr(fed_options, check_day, mora_path, spec_paths, wild_group, prog_ba logging.info(" " + str(split_details)) # Look for search string in extracted title, then copy matching spectra # Confirm that the title is even long enough to avoid IndexErrors - if (len(split_title) < 2) or (len(split_title[1]) < 3) or ((wild_group is True) and len(split_title) < 3): + if len(split_title) < 2: logging.info("Title doesn't have enough parts") continue # Add nmr to front of spectrum title so that the group initials get matched to the "initials" provided by the user, allowing Klaus to download all spectra from a specific group