Skip to content

Commit

Permalink
fix: enforce json rules on edge and not on node (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobtroidl authored Oct 10, 2022
1 parent 50515a6 commit 004aad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dotmotif/executors/NeuPrintExecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ def motif_to_cypher(
this_edge = """{}_{}["{}"] {} {}""".format(
u, v, key, operator, str(value)
)
that_edge = """(apoc.convert.fromJsonMap({}.roiInfo)["{}"].{} {} {})""".format(
u, attribute, sub_attribute, operator, str(value)
that_edge = """(apoc.convert.fromJsonMap({}_{}.roiInfo)["{}"].{} {} {})""".format(
u, v, attribute, sub_attribute, operator, str(value)
)
cypher = cypher.replace(this_edge, that_edge)
else:
Expand Down

0 comments on commit 004aad2

Please sign in to comment.