forked from guilindner/VortexFitting
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakeTests.py
More file actions
31 lines (25 loc) · 811 Bytes
/
makeTests.py
File metadata and controls
31 lines (25 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import os
import sys
is_windows = sys.platform.startswith('win')
if is_windows:
print("Running on Windows ...")
else:
print("Running on Linux ...")
if sys.version_info[0] < 3:
raise Exception("Must be using Python 3")
else:
cwd = os.getcwd()
os.chdir(cwd + '/tests')
cmd = 'python3 test_fitting.py'
os.system(cmd)
cmd = 'python3 test_tools.py'
os.system(cmd)
cmd = 'python3 testOseen.py'
os.system(cmd)
os.chdir(cwd + '/vortexfitting')
cmd = 'python3 convertToASCII.py -i ../data/example_data_HIT.nc -o ../data/test_dataHIT_ascii.dat'
os.system(cmd)
cmd = 'python3 convertToNC.py -i ../data/test_dataHIT_ascii.dat -o ../data/test_dataHIT_back_converted.nc'
os.system(cmd)
cmd = 'python3 generateNetCDF.py'
os.system(cmd)