Commit ecad5075 authored by Daniel Brown's avatar Daniel Brown
Browse files

changing profile code slightly

parent 1149af0c
import pykat
import pylab
kat = pykat.finesse.kat()
kat.parseCommands("""
l l1 1 0 n0
m m1 0.9 0.1 0 n0 n1
s s1 1 n1 n2
m m2 0.9 0.1 0 n2 n3
attr m1 Rc -2
attr m2 Rc 2
pd circ n2
xaxis m1 phi lin 0 180 1000
yaxis log abs
""")
kat.timeCode = True
out, timings = kat.run()
......@@ -512,9 +512,9 @@ class kat(object):
def phase(self,value): self.__phase = int(value)
@property
def getPerformanceData(self): return self.__time_code
@getPerformanceData.setter
def getPerformanceData(self,value): self.__time_code = bool(value)
def timeCode(self): return self.__time_code
@timeCode.setter
def timeCode(self,value): self.__time_code = bool(value)
@property
def components(self):
......@@ -1118,7 +1118,7 @@ class kat(object):
for l in perffile.readlines():
vals = l.strip().split()
perfData.append((vals[0], float(vals[1]), float(vals[2]), float(vals[3])))
perfData.append((vals[0], long(vals[1]), long(vals[2])))
return [r, perfData]
else:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment