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
4ac62423
Commit
4ac62423
authored
Jan 21, 2014
by
Daniel Brown
Browse files
fixing output selector
parent
50d0ed53
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/finesse.py
View file @
4ac62423
...
...
@@ -75,14 +75,14 @@ class katRun(object):
def
__getitem__
(
self
,
value
):
idx
=
[
i
for
i
in
range
(
len
(
self
.
ylabels
))
if
self
.
ylabels
[
i
].
split
(
" "
)[
0
]
==
str
(
value
)]
if
len
(
idx
)
>
0
and
self
.
y
.
shape
==
():
if
len
(
idx
)
>
0
and
self
.
y
.
shape
==
():
# In the case we have a noxaxis and just one output...
return
float
(
self
.
y
)
elif
len
(
idx
)
==
1
and
len
(
self
.
y
.
shape
)
>
=
1
:
elif
len
(
idx
)
==
1
and
len
(
self
.
y
.
shape
)
=
=
1
:
# only selecting a single output from a 1D array
if
self
.
y
.
size
==
1
:
if
self
.
y
.
size
==
1
:
return
self
.
y
else
:
return
self
.
y
[
idx
[
0
]]
...
...
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