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
Sebastian Steinlechner
pykat
Commits
651dbe0d
Commit
651dbe0d
authored
Mar 02, 2014
by
Andreas Freise
Browse files
fixing parsing error for gauss commands.
parent
b518e8e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/commands.py
View file @
651dbe0d
...
...
@@ -46,16 +46,13 @@ class gauss(object):
@
staticmethod
def
parseFinesseText
(
text
,
kat
):
values
=
text
.
split
()
if
not
values
[
0
].
startswith
(
"gauss"
)
or
(
len
(
values
)
!=
6
and
len
(
values
!=
8
)):
if
not
values
[
0
].
startswith
(
"gauss"
)
or
(
len
(
values
)
!=
6
and
len
(
values
)
!=
8
):
raise
exceptions
.
RuntimeError
(
"'{0}' not a valid Finesse gauss command"
.
format
(
text
))
name
=
values
[
1
]
component
=
values
[
2
]
node
=
values
[
3
]
if
values
[
0
].
endswith
(
"**"
):
if
len
(
values
)
==
6
:
print
""
...
...
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