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
Sean Leavey
pykat
Commits
ab06a7ed
Commit
ab06a7ed
authored
Mar 02, 2014
by
Daniel Brown
Browse files
better error handling
parent
6012c613
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/commands.py
View file @
ab06a7ed
...
...
@@ -66,13 +66,15 @@ class gauss(object):
elif
len
(
values
)
==
8
:
gpx
=
gauss_param
(
z
=
values
[
-
4
],
zr
=
values
[
-
3
])
gpy
=
gauss_param
(
z
=
values
[
-
2
],
zr
=
values
[
-
1
])
el
se
:
el
if
values
[
0
].
endswith
(
"**"
)
:
if
len
(
values
)
==
6
:
gp
=
gauss_param
(
w
=
values
[
-
2
],
rc
=
values
[
-
1
])
elif
len
(
values
)
==
8
:
gpx
=
gauss_param
(
w
=
values
[
-
4
],
rc
=
values
[
-
3
])
gpy
=
gauss_param
(
w
=
values
[
-
2
],
rc
=
values
[
-
1
])
else
:
raise
pkex
.
BasePyKatException
(
"Unexpected ending to gauss command '{0}'"
.
format
(
text
))
if
len
(
values
)
==
6
:
kat
.
nodes
[
node
].
setGauss
(
kat
.
components
[
component
],
gp
)
else
:
...
...
Write
Preview
Supports
Markdown
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