Skip to content

Commit e68808c

Browse files
committed
Updated fluence compression notebooks
1 parent db37d23 commit e68808c

2 files changed

Lines changed: 235 additions & 242 deletions

File tree

examples/fluence_wavelets.ipynb

Lines changed: 233 additions & 240 deletions
Large diffs are not rendered by default.

examples/matrix_sparse_only.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
"# run optimization with naive thresold of 1% of max(A)\n",
128128
"# create cvxpy problem using the clinical criteria and optimization parameters\n",
129129
"A = deepcopy(inf_matrix.A)\n",
130-
"S_sparse = get_sparse_only(matrix=A, threshold_perc=1)\n",
130+
"S_sparse = get_sparse_only(A=A, threshold_perc=1)\n",
131131
"inf_matrix.A = S_sparse"
132132
]
133133
},
@@ -200,7 +200,7 @@
200200
"source": [
201201
"# run optimization with thresold of 1% and sparsifying matrix using RMR method\n",
202202
"# create cvxpy problem using the clinical criteria and optimization parameters\n",
203-
"S_rmr = get_sparse_only(matrix=A, threshold_perc=10, compression='rmr')\n",
203+
"S_rmr = get_sparse_only(A=A, threshold_perc=10, compression='rmr')\n",
204204
"inf_matrix.A = S_rmr\n",
205205
"opt = pp.Optimization(my_plan, inf_matrix=inf_matrix, opt_params=opt_params)\n",
206206
"opt.create_cvxpy_problem()\n",

0 commit comments

Comments
 (0)