-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun_ARTop.py
More file actions
33 lines (24 loc) · 747 Bytes
/
run_ARTop.py
File metadata and controls
33 lines (24 loc) · 747 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
#!/usr/bin/env python
# coding: utf-8
import subprocess
import os
'''
run_ARTop.py
Run this script to call other python and C++ scripts that combine to produce
the output files of ARTop.
REMEMBER: before running this script, complete 'read_data.txt'.
'''
# Run the initial setup (download files, get velocities, get potential fields)
gap = ' '
cwd = os.getcwd()
pathpy = os.path.join(cwd,'source','python')
pathInitial = os.path.join(pathpy,'InitialSetup.py')
cmd = 'python'+gap+pathInitial
subprocess.call(cmd,shell=True)
# Run the topological calculations
gap = ' '
cwd = os.getcwd()
pathcpp = os.path.join(cwd,'source','python')
pathTop = os.path.join(pathcpp,'Topology.py')
cmd = 'python'+gap+pathTop
subprocess.call(cmd,shell=True)