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
Sebastian Steinlechner
pykat
Commits
939d328e
Commit
939d328e
authored
9 years ago
by
Daniel Brown
Browse files
Options
Downloads
Patches
Plain Diff
adding out.info()
parent
36f3b074
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/test_plot.py
+2
-1
2 additions, 1 deletion
bin/test_plot.py
pykat/finesse.py
+19
-0
19 additions, 0 deletions
pykat/finesse.py
with
21 additions
and
1 deletion
bin/test_plot.py
+
2
−
1
View file @
939d328e
...
@@ -42,6 +42,7 @@ kat.m2.Rcy = 1000.0
...
@@ -42,6 +42,7 @@ kat.m2.Rcy = 1000.0
kat
.
maxtem
=
0
kat
.
maxtem
=
0
out
=
kat
.
run
()
out
=
kat
.
run
()
fig
=
out
.
plot
(
yaxis
=
"
log abs:deg
"
)
#
fig = out.plot(yaxis="log abs:deg")
#fig.savefig("test_plot.pdf")
#fig.savefig("test_plot.pdf")
out
.
info
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pykat/finesse.py
+
19
−
0
View file @
939d328e
...
@@ -240,6 +240,25 @@ class katRun(object):
...
@@ -240,6 +240,25 @@ class katRun(object):
self
.
katVersion
=
None
self
.
katVersion
=
None
self
.
yaxis
=
None
self
.
yaxis
=
None
def
info
(
self
):
kat
=
pykat
.
finesse
.
kat
()
kat
.
verbose
=
False
kat
.
parseCommands
(
self
.
katScript
)
detectors
=
list
(
set
([
lbl
.
split
()[
0
]
for
lbl
in
self
.
ylabels
]))
detectors
.
sort
()
print
(
"
--- Output info ---
"
)
print
(
"
Run date and time: %s
"
%
self
.
StartDateTime
)
print
(
"
Detectors used: %s
"
%
(
"
,
"
.
join
(
detectors
)))
if
kat
.
noxaxis
:
print
(
"
No xaxis used
"
)
else
:
print
(
"
One xaxis used: %s
"
%
kat
.
xaxis
.
getFinesseText
())
def
plot
(
self
,
detectors
=
None
,
filename
=
None
,
show
=
True
,
yaxis
=
None
,
legend
=
True
,
loc
=
0
,
title
=
None
):
def
plot
(
self
,
detectors
=
None
,
filename
=
None
,
show
=
True
,
yaxis
=
None
,
legend
=
True
,
loc
=
0
,
title
=
None
):
"""
"""
This will generate a plot for the output data of this particular pykat run.
This will generate a plot for the output data of this particular pykat run.
...
...
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