Skip to content

Commit 004aad2

Browse files
authored
fix: enforce json rules on edge and not on node (#130)
1 parent 50515a6 commit 004aad2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dotmotif/executors/NeuPrintExecutor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ def motif_to_cypher(
145145
this_edge = """{}_{}["{}"] {} {}""".format(
146146
u, v, key, operator, str(value)
147147
)
148-
that_edge = """(apoc.convert.fromJsonMap({}.roiInfo)["{}"].{} {} {})""".format(
149-
u, attribute, sub_attribute, operator, str(value)
148+
that_edge = """(apoc.convert.fromJsonMap({}_{}.roiInfo)["{}"].{} {} {})""".format(
149+
u, v, attribute, sub_attribute, operator, str(value)
150150
)
151151
cypher = cypher.replace(this_edge, that_edge)
152152
else:

0 commit comments

Comments
 (0)