Skip to content

Commit

Permalink
make safe
Browse files Browse the repository at this point in the history
  • Loading branch information
uhbrar committed Oct 30, 2024
1 parent 9de5887 commit f8569c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service_aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ async def multi_strider(messages, params, guid, bypass_cache):
return responses


def create_aux_graph(analysis, rule_info):
def create_aux_graph(analysis, rule_info={}):
"""Given an analysis, create an auxiliary graph.
Look through the analysis edge bindings, get all the knowledge edges, and put them in an aux graph.
Give it a random uuid as an id."""
Expand All @@ -983,7 +983,7 @@ def create_aux_graph(analysis, rule_info):
for edge in edgelist:
aux_graph["edges"].append(edge["id"])
for rule_def in AMIE_EXPANSIONS.get(rule_info.get("rule_key", ""),[]):
if rule_def["Rule"] == rule_def.get("rule_name", ""):
if rule_def["Rule"] == rule_info.get("rule_name", ""):
aux_graph["attributes"].append(
{
"attribute_type_id": "biolink:has_numeric_value",
Expand Down

0 comments on commit f8569c7

Please sign in to comment.