Skip to content

Commit 1c1ce92

Browse files
authored
Merge pull request #53 from BioPack-team/nb_order_bug
Fix Node Binding Bug
2 parents 251fef2 + 9d26ca9 commit 1c1ce92

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

shepherd_server/openapi-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ contact:
44
x-id: https://github.com/maximusunc
55
x-role: responsible developer
66
description: '<img src="/static/favicon.png" width="200px"><br /><br />Shepherd: Translator Autonomous Relay Agent Platform'
7-
version: 0.5.0
7+
version: 0.5.1
88
servers:
99
- description: Default server
1010
url: https://shepherd.renci.org

workers/aragorn_pathfinder/worker.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,15 @@ async def shadowfax(task, logger: logging.Logger):
137137
message["parameters"] = parameters
138138

139139
qgraph = message["message"]["query_graph"]
140-
pinned_node_ids_set = set()
141140
pinned_node_keys = []
141+
pinned_node_ids = []
142142
for node_key, node in qgraph["nodes"].items():
143143
pinned_node_keys.append(node_key)
144144
if node.get("ids", None) is not None:
145-
pinned_node_ids_set.add(node["ids"][0])
146-
if len(pinned_node_ids_set) != 2:
145+
pinned_node_ids.append(node["ids"][0])
146+
if len(set(pinned_node_ids)) != 2:
147147
logger.error("Pathfinder queries require two pinned nodes.")
148148
return message, 500
149-
pinned_node_ids = list(pinned_node_ids_set)
150149

151150
intermediate_categories = []
152151
path_key = next(iter(qgraph["paths"].keys()))

0 commit comments

Comments
 (0)