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
Saad Jbabdi
mcutils
Commits
8c46c9cb
Commit
8c46c9cb
authored
Jun 30, 2020
by
Michiel Cottaar
Browse files
BUG: include filenames of all expected filenames, not just the existing ones
parent
1de75631
Changes
1
Hide whitespace changes
Inline
Side-by-side
mcutils/pipe.py
View file @
8c46c9cb
...
...
@@ -848,11 +848,11 @@ class ScriptRun(object):
kwargs
=
{
var
:
self
.
iter_vars
[
var
]
if
var
in
self
.
script
.
iter_vars
else
self
.
tree
.
get_variable
(
var
)
for
var
in
self
.
script
.
in_vars
}
for
is_output
,
target_dict
in
enumerate
((
self
.
requires
,
self
.
provides
)):
get_fn
=
np
.
vectorize
(
lambda
t
:
t
.
filename
if
(
is_output
==
1
)
or
t
.
ex
ists
else
None
,
otypes
=
[
'object'
])
get_fn
=
np
.
vectorize
(
lambda
t
:
t
.
filename
if
(
is_output
==
1
)
or
t
.
ex
pected
else
None
,
otypes
=
[
'object'
])
for
name
,
targets
in
target_dict
.
items
():
part_name
=
name
.
split
(
'/'
)[
-
1
]
if
isinstance
(
targets
,
Target
):
kwargs
[
part_name
]
=
targets
.
filename
if
(
is_output
==
1
)
or
targets
.
ex
ists
else
None
kwargs
[
part_name
]
=
targets
.
filename
if
(
is_output
==
1
)
or
targets
.
ex
pected
else
None
else
:
kwargs
[
part_name
]
=
get_fn
(
targets
)
return
kwargs
...
...
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