-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdiff_matrix.py
More file actions
executable file
·32 lines (24 loc) · 828 Bytes
/
Copy pathdiff_matrix.py
File metadata and controls
executable file
·32 lines (24 loc) · 828 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
#!/usr/bin/env python
import loos
import loos.pyloos
import sys
import numpy
import copy
import os
import argparse
import math
parser = argparse.ArgumentParser()
parser.add_argument('system_1',help='Path of the first file', type=str)
parser.add_argument('system_2',help='Path of the second file', type=str)
args = parser.parse_args()
array_first = numpy.loadtxt(args.system_1,usecols=(0), delimiter = " ")
array_second = numpy.loadtxt(args.system_1,usecols=(1), delimiter = " ")
array_1 = numpy.loadtxt(args.system_1,usecols=(2), delimiter = " ")
array_2 = numpy.loadtxt(args.system_2,usecols=(2), delimiter = " ")
#print array_1
#log_array_1 = numpy.log(array_1)
#log_array_2 = numpy.log(array_2)
#print log_array_1
diff = array_1 - array_2
for i in range(len(diff)):
print array_first[i], array_second[i], diff[i]