We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 743512a commit ccd3b2bCopy full SHA for ccd3b2b
csv2atf.py
@@ -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
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