Skip to content

Commit 89ccabe

Browse files
committed
Working on filters
1 parent f3ac26e commit 89ccabe

12 files changed

+797
-84
lines changed

artefacts/NOISE.ipynb

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "86649012-4219-45f8-a42b-2f222159d7c9",
6+
"metadata": {},
7+
"source": [
8+
"\n",
9+
"\n",
10+
"- Look at noise notebook again\n",
11+
"- Look at pink noise:\n",
12+
" - Can we tell from spectrum what \"color\" the noise is?\n",
13+
" - \"Pink noise\" looks interesting\n",
14+
" - https://stackoverflow.com/questions/67085963/generate-colors-of-noise-in-python\n",
15+
" - https://en.wikipedia.org/wiki/Pink_noise\n",
16+
" - https://en.wikipedia.org/wiki/Johnson%E2%80%93Nyquist_noise\n",
17+
"- Look at shot noise:\n",
18+
" - Looks interesting: https://electronics.stackexchange.com/questions/716039/noise-in-classical-quantum-transmission\n",
19+
" - But what time scale does this happen on?"
20+
]
21+
}
22+
],
23+
"metadata": {
24+
"kernelspec": {
25+
"display_name": "Python 3 (ipykernel)",
26+
"language": "python",
27+
"name": "python3"
28+
},
29+
"language_info": {
30+
"codemirror_mode": {
31+
"name": "ipython",
32+
"version": 3
33+
},
34+
"file_extension": ".py",
35+
"mimetype": "text/x-python",
36+
"name": "python",
37+
"nbconvert_exporter": "python",
38+
"pygments_lexer": "ipython3",
39+
"version": "3.13.2"
40+
}
41+
},
42+
"nbformat": 4,
43+
"nbformat_minor": 5
44+
}

artefacts/appendix-A4-bessel-filters.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@
14521452
"name": "python",
14531453
"nbconvert_exporter": "python",
14541454
"pygments_lexer": "ipython3",
1455-
"version": "3.12.7"
1455+
"version": "3.13.2"
14561456
}
14571457
},
14581458
"nbformat": 4,

artefacts/appendix-A5-bessel-filter-odes.ipynb

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

artefacts/appendix-B1-uncompensated-models.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@
10261026
"name": "python",
10271027
"nbconvert_exporter": "python",
10281028
"pygments_lexer": "ipython3",
1029-
"version": "3.12.3"
1029+
"version": "3.13.2"
10301030
}
10311031
},
10321032
"nbformat": 4,

artefacts/appendix-D2-inspecting-noise.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -926,9 +926,9 @@
926926
"name": "python",
927927
"nbconvert_exporter": "python",
928928
"pygments_lexer": "ipython3",
929-
"version": "3.11.6"
929+
"version": "3.13.2"
930930
}
931931
},
932932
"nbformat": 4,
933-
"nbformat_minor": 2
933+
"nbformat_minor": 4
934934
}

artefacts/appendix-D3-liquid-junction-potential.ipynb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,14 @@
6464
"source": [
6565
"## How do we calculate the LJP?\n",
6666
"\n",
67-
"In short, almost everyone uses [a piece of software developed by Peter Barry](https://doi.org/10.1016/0165-0270(94)90031-0). \n",
68-
"An [open source alternative](https://swharden.com/LJPcalc/) based on a newer model is also available, as described in [Marino et al. 2014](https://arxiv.org/abs/1403.3640)."
67+
"The LJP can be estimated based on the concentrations of free charged molecules in the bath and pipette solution.\n",
68+
"Most commonly, [a piece of software developed by Peter Barry](https://doi.org/10.1016/0165-0270(94)90031-0) is used, but an [open source alternative](https://swharden.com/LJPcalc/) based on a more accurate model is also available, as described in [Marino et al. 2014](https://arxiv.org/abs/1403.3640).\n",
69+
"\n",
70+
"An added difficulty here is that the solutions given in methods sections are always _total concentrations_, not _free concentrations_.\n",
71+
"In particular:\n",
72+
"- Ca, Mg (and others) are buffered by EGTA, ATP (and others). Free concentrations are typically orders of magnitude lower than total concentrations (added mM of Ca2+ become uM after buffering). They can be estimated using problems like [MaxChelator](https://somapp.ucdmc.ucdavis.edu/pharmacology/bers/maxchelator/index.html).\n",
73+
"- pH adjustment of solution is typically done with XOH, where X is Na, K, Cs or some other ion. The exact amount is not usually mentioned in methods sections, but can affect the final solutions.\n",
74+
"- pH regulators like HEPES bind or release H+ (H-Hepes <--> H+ + HEPES-), which may need to be taken into account."
6975
]
7076
},
7177
{
@@ -243,7 +249,7 @@
243249
"name": "python",
244250
"nbconvert_exporter": "python",
245251
"pygments_lexer": "ipython3",
246-
"version": "3.12.7"
252+
"version": "3.11.9"
247253
}
248254
},
249255
"nbformat": 4,

artefacts/artefacts-1-modelling-patch-clamp.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@
856856
"name": "python",
857857
"nbconvert_exporter": "python",
858858
"pygments_lexer": "ipython3",
859-
"version": "3.12.3"
859+
"version": "3.13.2"
860860
}
861861
},
862862
"nbformat": 4,

artefacts/artefacts-2-compensation.ipynb

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,46 @@
343343
"where typical values for $\\tau_\\text{sum}$ are $2\\mu s$ (fast), $10\\mu s$ (average), or $100\\mu s$ (slow, see [Appendix C3](./appendix-C3-parameter-values.ipynb))."
344344
]
345345
},
346+
{
347+
"cell_type": "code",
348+
"execution_count": null,
349+
"id": "3f4a712d-9dd5-48d9-96c7-f85ad55bf365",
350+
"metadata": {},
351+
"outputs": [],
352+
"source": []
353+
},
354+
{
355+
"cell_type": "markdown",
356+
"id": "f67c7146-8f3f-42bc-b329-138f53fe4342",
357+
"metadata": {},
358+
"source": [
359+
"\\begin{align}\n",
360+
"V_\\text{ref} = V_c + \\alpha R_s^* I_\\text{obs} + \\beta R_s^* C_m^* \\dot{V}_\\text{est}\n",
361+
"\\end{align}"
362+
]
363+
},
364+
{
365+
"cell_type": "markdown",
366+
"id": "9e06a285-6e73-4b2f-820e-e6e07088e9df",
367+
"metadata": {},
368+
"source": [
369+
"\\begin{align}\n",
370+
"V_\\text{ref} = V_c + V_s + \\beta R_s^* C_m^* \\dot{V}_\\text{est}\n",
371+
"\\end{align}\n",
372+
"\n",
373+
"\\begin{align}\n",
374+
"\\tau_s \\dot{V_s} = \\alpha R_s^* I_\\text{obs} - V_s\n",
375+
"\\end{align}"
376+
]
377+
},
378+
{
379+
"cell_type": "code",
380+
"execution_count": null,
381+
"id": "31c5c489-1d08-41bd-af28-cf8843a1df6d",
382+
"metadata": {},
383+
"outputs": [],
384+
"source": []
385+
},
346386
{
347387
"cell_type": "markdown",
348388
"id": "934470f3",
@@ -642,7 +682,7 @@
642682
"4. Series resistance correction\n",
643683
"5. Series resistance prediction\n",
644684
"\n",
645-
"In the next notebook we will run simulations to investigate the model in detail."
685+
"In the next notebook we will discuss _filtering_ of the input and output signals."
646686
]
647687
}
648688
],
@@ -662,7 +702,7 @@
662702
"name": "python",
663703
"nbconvert_exporter": "python",
664704
"pygments_lexer": "ipython3",
665-
"version": "3.12.7"
705+
"version": "3.13.2"
666706
}
667707
},
668708
"nbformat": 4,

0 commit comments

Comments
 (0)