Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pykat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
finesse
pykat
Commits
ecad5075
Commit
ecad5075
authored
10 years ago
by
Daniel Brown
Browse files
Options
Downloads
Patches
Plain Diff
changing profile code slightly
parent
1149af0c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/test_profile.py
+20
-0
20 additions, 0 deletions
bin/test_profile.py
pykat/finesse.py
+4
-4
4 additions, 4 deletions
pykat/finesse.py
with
24 additions
and
4 deletions
bin/test_profile.py
0 → 100644
+
20
−
0
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
()
This diff is collapsed.
Click to expand it.
pykat/finesse.py
+
4
−
4
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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment