Skip to content

Commit ccd3b2b

Browse files
committed
Added ATF (pClamp) version of sine wave protocol with ramp.
1 parent 743512a commit ccd3b2b

File tree

2 files changed

+86022
-0
lines changed

2 files changed

+86022
-0
lines changed

csv2atf.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env python3
2+
import os
3+
import sys
4+
try:
5+
import myokit
6+
import myokit.formats.axon as axon
7+
except ImportError:
8+
print('This script requires Myokit to run ($ pip install myokit).')
9+
sys.exit(1)
10+
11+
if len(sys.argv) != 2:
12+
print('Syntax: csv2atf.py <csv_file_name>')
13+
sys.exit(1)
14+
15+
csv_file_name = sys.argv[1]
16+
atf_file_name = os.path.splitext(csv_file_name)[0] + '.atf'
17+
axon.save_atf(myokit.DataLog.load_csv(csv_file_name), atf_file_name)

0 commit comments

Comments
 (0)