Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't reuse support graph ids #118

Merged
merged 2 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ranker/modules/omnicorp_overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ async def add_shared_pmid_counts(
for pair, publication_count in values.items():
if publication_count == 0:
continue
support_idx += 1
uid = str(uuid4())
kgraph["edges"].update(
{
Expand Down Expand Up @@ -92,8 +91,10 @@ async def add_shared_pmid_counts(
for sg in analysis["support_graphs"]:
if sg.startswith("OMNICORP_support_graph"):
omnisupport = sg
cbizon marked this conversation as resolved.
Show resolved Hide resolved
break
if omnisupport is None:
omnisupport = f"OMNICORP_support_graph_{support_idx}"
support_idx += 1
analysis["support_graphs"].append(omnisupport)
if omnisupport not in aux_graphs:
aux_graphs[omnisupport] = { "edges": [] }
Expand Down
2 changes: 1 addition & 1 deletion ranker/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from ranker.util.omnicorp_get_node_pmids import get_node_pmids

# set the app version
APP_VERSION = '3.2.5'
APP_VERSION = '3.2.6'

APP = FastAPI(title='ARAGORN Ranker', version=APP_VERSION)

Expand Down
Loading