Skip to content

Commit

Permalink
Fix tree API use.
Browse files Browse the repository at this point in the history
  • Loading branch information
J08nY committed Jun 4, 2024
1 parent c399a03 commit 4f04530
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions re/rpa.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@
" leak = lm(intermediate.value)\n",
" trace.append(leak)\n",
"\n",
" ctx.actions.walk(callback)\n",
" ctx.actions[0].walk(callback)\n",
" return Trace(np.array(trace))\n",
"\n",
"def simulated_rpa_trace(mult, scalar, affine_point, noise, num_target=10, num_random=10):\n",
Expand Down Expand Up @@ -818,7 +818,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions re/zvp.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@
" if isinstance(action, FormulaAction):\n",
" for intermediate in action.op_results:\n",
" zeros.append(int(intermediate.value) == 0)\n",
" ctx.actions.walk(callback)\n",
" ctx.actions[0].walk(callback)\n",
" count = sum(zeros)\n",
" counts[i, j] = count\n",
" positions[i, j] = tuple(zeros) \n",
Expand Down Expand Up @@ -1465,7 +1465,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 4f04530

Please sign in to comment.