Skip to content

Commit b62356c

Browse files
committed
Ensure files are pickles
1 parent 29afe0f commit b62356c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pathme_viewer/load_db.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ def import_from_pathme(manager, folder, files, conversion_method, database, **kw
8585
for file_name in tqdm.tqdm(files, desc='Converting {} to BEL to populate PathMe database'.format(database)):
8686
file_path = os.path.join(folder, file_name)
8787

88+
if not file_name.endswith('.pickle'):
89+
continue
90+
8891
bel_pathway = conversion_method(file_path, **kwargs)
8992

9093
pathway_dict = _prepare_pathway_model(os.path.splitext(file_name)[0], database, bel_pathway)

0 commit comments

Comments
 (0)