Skip to content

Commit f3ac26e

Browse files
committed
Working filters into the main body
1 parent d8336a2 commit f3ac26e

9 files changed

+367
-352
lines changed

artefacts/README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,21 @@ The first notebook describes the uncompensated patch-clamp set up, and shows how
1414

1515
In the second notebook we update the model to include the compensation circuitry commonly used in patch-clamp amplifiers.
1616

17-
## Simulating a manual patch clamp experiment [![github](../img/github.svg)](artefacts-3-simulations.ipynb) [![nbviewer](../img/nbviewer.svg)](https://nbviewer.jupyter.org/github/CardiacModelling/fitting-notebooks/tree/artefacts/artefacts/artefacts-3-simulations.ipynb)
17+
## Modelling filters [![github](../img/github.svg)](artefacts-3-filtering.ipynb) [![nbviewer](../img/nbviewer.svg)](https://nbviewer.jupyter.org/github/CardiacModelling/fitting-notebooks/tree/artefacts/artefacts/artefacts-3-filtering.ipynb)
1818

1919
(Unfinished) In this notebook, we walk through the steps of a manual patch-clamp experiment.
2020

21-
## Simplified models [![github](../img/github.svg)](artefacts-4-simplified.ipynb) [![nbviewer](../img/nbviewer.svg)](https://nbviewer.jupyter.org/github/CardiacModelling/fitting-notebooks/tree/artefacts/artefacts/artefacts-4-simplified.ipynb)
21+
## Simulating a manual patch clamp experiment [![github](../img/github.svg)](artefacts-4-simulations.ipynb) [![nbviewer](../img/nbviewer.svg)](https://nbviewer.jupyter.org/github/CardiacModelling/fitting-notebooks/tree/artefacts/artefacts/artefacts-4-simulations.ipynb)
2222

23-
In notebook number four we derive simplified models of the compensated voltage clamp setup, which can be used in fitting.
23+
(Unfinished) In this notebook, we walk through the steps of a manual patch-clamp experiment.
24+
25+
## Simplified models [![github](../img/github.svg)](artefacts-5-simplified.ipynb) [![nbviewer](../img/nbviewer.svg)](https://nbviewer.jupyter.org/github/CardiacModelling/fitting-notebooks/tree/artefacts/artefacts/artefacts-5-simplified.ipynb)
26+
27+
(Unfinished) In notebook number five we derive simplified models of the compensated voltage clamp setup, which can be used in fitting.
2428

25-
## Summary [![github](../img/github.svg)](artefacts-5-summary.ipynb) [![nbviewer](../img/nbviewer.svg)](https://nbviewer.jupyter.org/github/CardiacModelling/fitting-notebooks/tree/artefacts/artefacts/artefacts-5-summary.ipynb)
29+
## Summary [![github](../img/github.svg)](artefacts-6-summary.ipynb) [![nbviewer](../img/nbviewer.svg)](https://nbviewer.jupyter.org/github/CardiacModelling/fitting-notebooks/tree/artefacts/artefacts/artefacts-6-summary.ipynb)
2630

27-
Finally, we present two simplified models (with currents in pA and currents in A/F), in equation & Myokit form.
31+
(Unfinished) Finally, we present two simplified models (with currents in pA and currents in A/F), in equation & Myokit form.
2832

2933
## Appendices
3034

artefacts/appendix-A4-bessel-filters.ipynb

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

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

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

artefacts/artefacts-2-compensation.ipynb

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

artefacts/artefacts-6-epc.ipynb renamed to artefacts/artefacts-3-filtering.ipynb

Lines changed: 221 additions & 1 deletion
Large diffs are not rendered by default.

artefacts/artefacts-3-simulations.ipynb renamed to artefacts/artefacts-4-simulations.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"source": [
88
"# Simulating a manual patch clamp experiment\n",
99
"\n",
10-
"In the [last notebook](./artefacts-2-compensation.ipynb) we completed our model of whole-cell patch clamp in voltage-clamp mode, with compensation circuitry.\n",
10+
"In the [last notebook](./artefacts-3-filters.ipynb) we completed our model of whole-cell patch clamp in voltage-clamp mode.\n",
1111
"Here, we use this model to simulate a manual patch clamp experiment."
1212
]
1313
},
@@ -1076,7 +1076,7 @@
10761076
"name": "python",
10771077
"nbconvert_exporter": "python",
10781078
"pygments_lexer": "ipython3",
1079-
"version": "3.11.6"
1079+
"version": "3.12.7"
10801080
}
10811081
},
10821082
"nbformat": 4,

artefacts/library.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ def bode(magnitude, argument, axes=None, lo=1e-2, hi=1e5, **kwargs):
264264
ax1.set_xscale('log')
265265
ax1.set_xlabel('Angular frequency')
266266
ax1.set_ylabel('Phase shift (degrees)')
267+
ax1.set_ylim(-195, 195)
268+
ax1.set_yticks([-180, -90, 0, 90, 180])
269+
267270
ax1.grid()
268271
else:
269272
ax0, ax1 = axes

0 commit comments

Comments
 (0)