Skip to content

Commit e3fcc02

Browse files
committed
Some tweaks
1 parent 5bbb7e1 commit e3fcc02

File tree

1 file changed

+42
-26
lines changed

1 file changed

+42
-26
lines changed

docs/WGFAST2025_demo.ipynb

Lines changed: 42 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
},
6161
{
6262
"cell_type": "code",
63-
"execution_count": 2,
63+
"execution_count": 4,
6464
"id": "2aacad82-0a13-4875-9078-a99e74309f05",
6565
"metadata": {
6666
"id": "2aacad82-0a13-4875-9078-a99e74309f05"
@@ -72,7 +72,7 @@
7272
"'0.9.1'"
7373
]
7474
},
75-
"execution_count": 2,
75+
"execution_count": 4,
7676
"metadata": {},
7777
"output_type": "execute_result"
7878
}
@@ -98,7 +98,7 @@
9898
},
9999
{
100100
"cell_type": "code",
101-
"execution_count": 3,
101+
"execution_count": 5,
102102
"id": "5e20146b-4e70-48a2-8d93-4715a59caf6f",
103103
"metadata": {
104104
"colab": {
@@ -146,7 +146,7 @@
146146
" 'Cu64 calibration sphere']"
147147
]
148148
},
149-
"execution_count": 3,
149+
"execution_count": 5,
150150
"metadata": {},
151151
"output_type": "execute_result"
152152
}
@@ -158,7 +158,7 @@
158158
},
159159
{
160160
"cell_type": "code",
161-
"execution_count": 4,
161+
"execution_count": 6,
162162
"id": "0771d377-547a-4fa3-bed1-a0374f74d88e",
163163
"metadata": {
164164
"colab": {
@@ -184,7 +184,7 @@
184184
" 'benchmark_model': 'mss'}"
185185
]
186186
},
187-
"execution_count": 4,
187+
"execution_count": 6,
188188
"metadata": {},
189189
"output_type": "execute_result"
190190
}
@@ -202,12 +202,12 @@
202202
"source": [
203203
"## Shapes from the literature\n",
204204
"\n",
205-
"EchoSMs also contains other fish model data - with the aim of easing access to historical datasets easier and facilitating testing of new model implementations."
205+
"EchoSMs also contains other fish model data - with the aim of easing access to historical datasets easier and facilitating testing of new model implementations. Cod A, B, C, and D are the model shapes used in the Clay & Horne (1992) KRM paper."
206206
]
207207
},
208208
{
209209
"cell_type": "code",
210-
"execution_count": 5,
210+
"execution_count": 7,
211211
"id": "7b077a2d-77a0-4de5-b91a-a2ba9f757994",
212212
"metadata": {},
213213
"outputs": [
@@ -252,7 +252,7 @@
252252
" 'SkipjackTuna_backboneSkull_41.18cm']"
253253
]
254254
},
255-
"execution_count": 5,
255+
"execution_count": 7,
256256
"metadata": {},
257257
"output_type": "execute_result"
258258
}
@@ -263,7 +263,7 @@
263263
},
264264
{
265265
"cell_type": "code",
266-
"execution_count": 6,
266+
"execution_count": 8,
267267
"id": "1d8f70f2-85fb-42cb-a00d-0e23fd28ac8e",
268268
"metadata": {},
269269
"outputs": [
@@ -282,6 +282,14 @@
282282
"echosms.KRMdata().model('Cod').plot()"
283283
]
284284
},
285+
{
286+
"cell_type": "markdown",
287+
"id": "4d482e99-a214-439c-8388-233cd7e91589",
288+
"metadata": {},
289+
"source": [
290+
"There are also some DWBA model shapes available from echoSMs:"
291+
]
292+
},
285293
{
286294
"cell_type": "code",
287295
"execution_count": 7,
@@ -408,7 +416,7 @@
408416
},
409417
{
410418
"cell_type": "code",
411-
"execution_count": 32,
419+
"execution_count": 12,
412420
"id": "51addec9-dcb2-435e-9d55-dc22464fbbbb",
413421
"metadata": {
414422
"colab": {
@@ -422,7 +430,7 @@
422430
"name": "stderr",
423431
"output_type": "stream",
424432
"text": [
425-
"mss: 100%|███████████████████████████████████████████████████████████████████████████████████ [798/798; 89.50 models/s]\n"
433+
"mss: 100%|███████████████████████████████████████████████████████████████████████████████████ [798/798; 92.86 models/s]\n"
426434
]
427435
},
428436
{
@@ -452,7 +460,7 @@
452460
},
453461
{
454462
"cell_type": "code",
455-
"execution_count": 33,
463+
"execution_count": 13,
456464
"id": "d1dc1ee4-accc-4b22-b0bd-5aa72c3db6ea",
457465
"metadata": {
458466
"colab": {
@@ -480,9 +488,17 @@
480488
"plt.legend(['echoSMs', 'benchmark']);"
481489
]
482490
},
491+
{
492+
"cell_type": "markdown",
493+
"id": "ac109413-9e40-4206-a613-b4b32e7ac60b",
494+
"metadata": {},
495+
"source": [
496+
"Can also have multiple parameter arrays, for example radius and frequency:"
497+
]
498+
},
483499
{
484500
"cell_type": "code",
485-
"execution_count": 43,
501+
"execution_count": 14,
486502
"id": "56d33db0-ae04-400f-bb2d-1ad7f53e21b2",
487503
"metadata": {
488504
"colab": {
@@ -550,7 +566,7 @@
550566
" 194242.42424242, 196161.61616162, 198080.80808081, 200000. ])}"
551567
]
552568
},
553-
"execution_count": 43,
569+
"execution_count": 14,
554570
"metadata": {},
555571
"output_type": "execute_result"
556572
}
@@ -561,9 +577,17 @@
561577
"parameters"
562578
]
563579
},
580+
{
581+
"cell_type": "markdown",
582+
"id": "0f096584-b6ce-4721-90cc-dba918e1deae",
583+
"metadata": {},
584+
"source": [
585+
"These parameters define 10,000 model runs, so use the multiprocessing option to spread the calculations across CPU's"
586+
]
587+
},
564588
{
565589
"cell_type": "code",
566-
"execution_count": 55,
590+
"execution_count": 15,
567591
"id": "cb88a047-56b4-42a7-af83-427320346ef4",
568592
"metadata": {
569593
"colab": {
@@ -590,7 +614,7 @@
590614
{
591615
"data": {
592616
"application/vnd.jupyter.widget-view+json": {
593-
"model_id": "de4e187694bb455094601a31baf20b3b",
617+
"model_id": "16fff000d8004b62b6a223fbc46e9081",
594618
"version_major": 2,
595619
"version_minor": 0
596620
},
@@ -609,7 +633,7 @@
609633
},
610634
{
611635
"cell_type": "code",
612-
"execution_count": 57,
636+
"execution_count": 16,
613637
"id": "fd686bd8-847c-4b6f-b7ef-c308f0261e39",
614638
"metadata": {
615639
"id": "fd686bd8-847c-4b6f-b7ef-c308f0261e39"
@@ -641,14 +665,6 @@
641665
"- 9+ scattering models\n",
642666
"- Simple and consistent interface"
643667
]
644-
},
645-
{
646-
"cell_type": "code",
647-
"execution_count": null,
648-
"id": "782973d9-56af-448f-9eda-35518d823769",
649-
"metadata": {},
650-
"outputs": [],
651-
"source": []
652668
}
653669
],
654670
"metadata": {

0 commit comments

Comments
 (0)