Skip to content

Commit db52664

Browse files
committed
Fix keywords and add new tomograms
1 parent ba94ab0 commit db52664

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

process_tomograms.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ def create_detailed_description(information, annotation):
114114
else:
115115
software = [software]
116116
for soft in software:
117-
keywords.append(soft)
117+
if soft not in keywords:
118+
keywords.append(soft)
118119
if "collaboratorsAndRoles" in annotation:
119120
description += (
120121
f'{s}Collaborators and Roles:{e} {annotation["collaboratorsAndRoles"]}{sep}'
@@ -315,7 +316,9 @@ def process_record(source, edit=None):
315316
if len(split) > 1:
316317
s_key = split[1].split(",")
317318
for s in s_key:
318-
keywords.append(s.strip())
319+
n = s.strip()
320+
if n not in keywords:
321+
keywords.append(n)
319322
d_text = split[0]
320323
if d_text == "":
321324
d_text = f"Raw data files of {title}"

tomogram_ids.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)