Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
TOPFARM
TopFarm2
Commits
953591b6
Commit
953591b6
authored
Feb 10, 2020
by
Mads M. Pedersen
Committed by
Mikkel Friis-Møller
Feb 10, 2020
Browse files
the keywords in the recorder has been updated in the development version of openmdao.
parent
21c5c2c0
Pipeline
#12093
passed with stages
in 13 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
topfarm/recorders.py
View file @
953591b6
...
...
@@ -81,27 +81,29 @@ class TopFarmListRecorder(SqliteRecorder):
out_keys
=
[]
in_keys
=
[]
output
=
data
.
get
(
'output'
,
data
.
get
(
'out'
))
# new name is output
input
=
data
.
get
(
'input'
,
data
.
get
(
'in'
))
if
self
.
num_cases
==
1
:
for
key
in
data
[
'out'
]
:
for
key
in
output
:
rec_key
=
key
.
split
(
'.'
)[
-
1
]
out_keys
.
append
(
rec_key
)
self
.
driver_iteration_dict
[
rec_key
]
=
[
data
[
'out'
]
[
key
].
copy
()]
for
key
in
data
[
'in'
]
:
self
.
driver_iteration_dict
[
rec_key
]
=
[
output
[
key
].
copy
()]
for
key
in
input
:
rec_key
=
key
.
split
(
'.'
)[
-
1
]
if
rec_key
not
in
out_keys
:
in_keys
.
append
(
rec_key
)
self
.
driver_iteration_dict
[
rec_key
]
=
[
data
[
'in'
]
[
key
].
copy
()]
self
.
driver_iteration_dict
[
rec_key
]
=
[
input
[
key
].
copy
()]
for
k
,
v
in
meta_fields
:
self
.
driver_iteration_dict
[
k
]
=
[
v
]
else
:
for
key
in
data
[
'out'
]
:
for
key
in
output
:
rec_key
=
key
.
split
(
'.'
)[
-
1
]
self
.
driver_iteration_dict
[
rec_key
].
append
(
data
[
'out'
]
[
key
].
copy
())
for
key
in
data
[
'in'
]
:
self
.
driver_iteration_dict
[
rec_key
].
append
(
output
[
key
].
copy
())
for
key
in
input
:
rec_key
=
key
.
split
(
'.'
)[
-
1
]
if
rec_key
in
in_keys
:
self
.
driver_iteration_dict
[
rec_key
].
append
(
data
[
'in'
]
[
key
].
copy
())
self
.
driver_iteration_dict
[
rec_key
].
append
(
input
[
key
].
copy
())
for
k
,
v
in
meta_fields
:
self
.
driver_iteration_dict
[
k
].
append
(
v
)
...
...
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