-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathmakeTests.py
More file actions
34 lines (26 loc) · 857 Bytes
/
makeTests.py
File metadata and controls
34 lines (26 loc) · 857 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
32
33
import os
import sys
PYTHON = sys.executable
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 = f'{PYTHON} test_fitting.py'
os.system(cmd)
cmd = f'{PYTHON} test_tools.py'
os.system(cmd)
cmd = f'{PYTHON} test_Lamb_Oseen.py'
os.system(cmd)
cmd = f'{PYTHON} test_Rankine.py'
os.system(cmd)
os.chdir(cwd + '/vortexfitting')
cmd = f'{PYTHON} convertToASCII.py -i ../data/example_data_HIT.nc -o ../data/test_dataHIT_ascii.dat'
os.system(cmd)
cmd = f'{PYTHON} convertToNC.py -i ../data/test_dataHIT_ascii.dat -o ../data/test_dataHIT_back_converted.nc'
os.system(cmd)