Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
finesse
pykat
Commits
ecad5075
Commit
ecad5075
authored
Feb 09, 2015
by
Daniel Brown
Browse files
changing profile code slightly
parent
1149af0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/test_profile.py
0 → 100644
View file @
ecad5075
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
()
pykat/finesse.py
View file @
ecad5075
...
...
@@ -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
],
f
lo
at
(
vals
[
1
]),
f
lo
at
(
vals
[
2
])
,
float
(
vals
[
3
])
))
perfData
.
append
((
vals
[
0
],
lo
ng
(
vals
[
1
]),
lo
ng
(
vals
[
2
])))
return
[
r
,
perfData
]
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment