Skip to content

Commit 2b90dda

Browse files
committed
Fix typo
1 parent ad52e96 commit 2b90dda

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

yunta/interaction_utils.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ def _create_data_json(
122122

123123
def organism_interactions() -> Dict[str, List[str]]:
124124

125+
global _INTERACTION_FILE_LOADED
126+
125127
if not os.path.exists(_data_json_path):
126128
print_err("Organism interaction lookup table not yet built; building...", flush=True)
127129
_create_data_json(_data_csv_path, _data_json_path, _name2ncbi_path)
@@ -136,7 +138,6 @@ def organism_interactions() -> Dict[str, List[str]]:
136138
ORGANISM_INTERACTIONS.update(
137139
_create_data_json(_data_csv_path, _data_json_path, _name2ncbi_path, test_mode=test_mode)
138140
)
139-
140-
_INTERACTION_FILE_LOADED = True
141+
_INTERACTION_FILE_LOADED = True
141142

142143
return ORGANISM_INTERACTIONS

0 commit comments

Comments
 (0)