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
464d25cc
Commit
464d25cc
authored
11 years ago
by
Andreas Freise
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitmaster.atlas.aei.uni-hannover.de:pykat/pykat
parents
0468c0b4
5fbe031d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pykat/finesse.py
+23
-1
23 additions, 1 deletion
pykat/finesse.py
with
23 additions
and
1 deletion
pykat/finesse.py
+
23
−
1
View file @
464d25cc
...
...
@@ -129,7 +129,6 @@ class kat(object):
self
.
__components
=
{}
# dictionary of optical components
self
.
__detectors
=
{}
# dictionary of detectors
self
.
__commands
=
{}
# dictionary of commands
self
.
__extra_lines
=
[]
# an array of strings which are just normal finesse code to include when running
self
.
__gui
=
None
self
.
nodes
=
NodeNetwork
(
self
)
self
.
__katdir
=
katdir
...
...
@@ -140,6 +139,8 @@ class kat(object):
# Various options for running finesse, typicaly the commands with just 1 input
# and have no name attached to them.
self
.
retrace
=
None
self
.
deriv_h
=
None
self
.
__phase
=
None
self
.
__maxtem
=
None
self
.
__noxaxis
=
None
...
...
@@ -274,6 +275,27 @@ class kat(object):
obj
=
pykat
.
commands
.
x2axis
.
parseFinesseText
(
line
)
elif
(
first
==
"
gauss
"
or
first
==
"
gauss*
"
or
first
==
"
gauss**
"
):
after_process
.
append
(
line
)
elif
(
first
==
"
noxaxis
"
):
self
.
noxaxis
=
True
elif
(
first
==
"
phase
"
):
v
=
line
.
split
(
"
"
)
if
len
(
v
)
!=
2
:
raise
pkex
.
BasePyKatException
(
"
Phase command `{0}` is incorrect.
"
.
format
(
line
))
else
:
self
.
phase
=
int
(
v
[
1
])
elif
(
first
==
"
retrace
"
):
v
=
line
.
split
(
"
"
)
if
len
(
v
)
>
2
:
raise
pkex
.
BasePyKatException
(
"
Retrace command `{0}` is incorrect.
"
.
format
(
line
))
elif
len
(
v
)
==
2
:
self
.
retrace
=
v
[
1
]
elif
(
first
==
"
deriv_h
"
):
v
=
line
.
split
(
"
"
)
if
len
(
v
)
!=
2
:
raise
pkex
.
BasePyKatException
(
"
Deriv_h command `{0}` is incorrect.
"
.
format
(
line
))
else
:
self
.
deriv_h
=
float
(
v
[
1
])
else
:
if
self
.
verbose
:
print
"
Parsing `{0}` into pykat object not implemented yet, added as extra line.
"
.
format
(
line
)
...
...
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