/usr/lib/python3/dist-packages/expeyes/fit-data.py is in python-expeyes 3.4.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | from __future__ import print_function
fi = open('bi-decay.dat','r')
x = []
y = []
while(1):
s = fi.readline()
if s == '': break
ss = s.split()
time = float(ss[0])
cnt = float(ss[1])
x.append(time)
y.append(cnt)
print (x,y)
y1, par = em.fitexp(x,y)
print (par)
|