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
0112f5dc
Commit
0112f5dc
authored
11 years ago
by
Andreas Freise
Browse files
Options
Downloads
Patches
Plain Diff
adding a verbose flag.
parent
e550cf73
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
+5
-2
5 additions, 2 deletions
pykat/finesse.py
with
5 additions
and
2 deletions
pykat/finesse.py
+
5
−
2
View file @
0112f5dc
...
@@ -79,6 +79,7 @@ class kat(object):
...
@@ -79,6 +79,7 @@ class kat(object):
def
__init__
(
self
,
kat_file
=
None
,
kat_code
=
None
,
katdir
=
""
,
katname
=
""
,
tempdir
=
None
,
tempname
=
None
):
def
__init__
(
self
,
kat_file
=
None
,
kat_code
=
None
,
katdir
=
""
,
katname
=
""
,
tempdir
=
None
,
tempname
=
None
):
self
.
scene
=
None
# scene object for GUI
self
.
scene
=
None
# scene object for GUI
self
.
verbose
=
True
self
.
__blocks
=
{}
# dictionary of blocks that are used
self
.
__blocks
=
{}
# dictionary of blocks that are used
self
.
__components
=
{}
# dictionary of optical components
self
.
__components
=
{}
# dictionary of optical components
self
.
__detectors
=
{}
# dictionary of detectors
self
.
__detectors
=
{}
# dictionary of detectors
...
@@ -201,6 +202,7 @@ class kat(object):
...
@@ -201,6 +202,7 @@ class kat(object):
elif
(
first
==
"
xaxis
"
or
first
==
"
x2axis
"
or
first
==
"
xaxis*
"
or
first
==
"
x2axis*
"
):
elif
(
first
==
"
xaxis
"
or
first
==
"
x2axis
"
or
first
==
"
xaxis*
"
or
first
==
"
x2axis*
"
):
obj
=
pykat
.
commands
.
xaxis
.
parseFinesseText
(
line
)
obj
=
pykat
.
commands
.
xaxis
.
parseFinesseText
(
line
)
else
:
else
:
if
self
.
verbose
:
print
"
Parsing `{0}` into pykat object not implemented yet, added as extra line.
"
.
format
(
line
)
print
"
Parsing `{0}` into pykat object not implemented yet, added as extra line.
"
.
format
(
line
)
obj
=
line
obj
=
line
# manually add the line to the block contents
# manually add the line to the block contents
...
@@ -260,6 +262,7 @@ class kat(object):
...
@@ -260,6 +262,7 @@ class kat(object):
cmd
.
append
(
'
--no-backspace
'
)
cmd
.
append
(
'
--no-backspace
'
)
cmd
.
append
(
katfile
.
name
)
cmd
.
append
(
katfile
.
name
)
if
self
.
verbose
:
print
cmd
print
cmd
p
=
subprocess
.
Popen
(
cmd
,
shell
=
False
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
p
=
subprocess
.
Popen
(
cmd
,
shell
=
False
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
err
=
""
err
=
""
...
...
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