Skip to content

Commit 7b0c6d5

Browse files
committed
Add caching decorators to build functions in LWA_dashboard notebook to optimize performance and reduce redundant computations.
1 parent 5763f9a commit 7b0c6d5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

notebooks/LWA_dashboard.ipynb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148
"outputs": [],
149149
"source": [
150150
"# arx table build function\n",
151+
"@pn.cache\n",
151152
"def build_a():\n",
152153
" # #region agent log\n",
153154
" _debug_log(\"H2\", \"build_* called\", {\"which\": \"a\"})\n",
@@ -182,6 +183,7 @@
182183
"\n",
183184
"\n",
184185
"# f-engine table build function\n",
186+
"@pn.cache\n",
185187
"def build_f():\n",
186188
" # #region agent log\n",
187189
" _debug_log(\"H2\", \"build_* called\", {\"which\": \"f\"})\n",
@@ -270,6 +272,7 @@
270272
"\n",
271273
"\n",
272274
"# x-engine table build function\n",
275+
"@pn.cache\n",
273276
"def build_x():\n",
274277
" # #region agent log\n",
275278
" _debug_log(\"H2\", \"build_* called\", {\"which\": \"x\"})\n",
@@ -328,6 +331,7 @@
328331
"\n",
329332
"\n",
330333
"# Antenna table build function\n",
334+
"@pn.cache\n",
331335
"def build_ant():\n",
332336
" # #region agent log\n",
333337
" _debug_log(\"H2\", \"build_* called\", {\"which\": \"ant\"})\n",
@@ -371,6 +375,7 @@
371375
"\n",
372376
"\n",
373377
"# Data recorder table build function\n",
378+
"@pn.cache\n",
374379
"def build_dr():\n",
375380
" # #region agent log\n",
376381
" _debug_log(\"H2\", \"build_* called\", {\"which\": \"dr\"})\n",

0 commit comments

Comments
 (0)