Skip to content

Commit

Permalink
Do not analyse empty corrected MR file (4uqt)
Browse files Browse the repository at this point in the history
  • Loading branch information
yokochi47 committed May 24, 2024
1 parent b2f03b9 commit 0c5212a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion wwpdb/utils/nmr/NmrDpUtility.py
Original file line number Diff line number Diff line change
Expand Up @@ -14771,9 +14771,16 @@ def split_concat_comp_id_seq_id(string):
if os.path.exists(cor_dst_file): # in case manually corrected MR file exists
dst_file = cor_dst_file

with open(dst_file, 'r') as ifh:
for line in ifh:
if line.isspace() or comment_pattern.match(line):
continue
has_content = True
break

remediated = True

elif not has_content:
if not has_content:
continue

mr_core_path = dst_file
Expand Down

0 comments on commit 0c5212a

Please sign in to comment.