8000 remove explicit check for boolean False in template_update · nipype/pydra@8d2522d · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d2522d

Browse files
tclose
andauthored
remove explicit check for boolean False in template_update
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
1 parent 62e3944 commit 8d2522d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydra/engine/helpers_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def template_update(inputs, output_dir, state_ind=None, map_copyfiles=None):
120120
field
121121
for field in attr_fields(inputs)
122122
if field.metadata.get("output_file_template")
123-
and getattr(inputs, field.name) is not False
123+
and getattr(inputs, field.name)
124124
and all(
125125
getattr(inputs, required_field) is not attr.NOTHING
126126
for required_field in field.metadata.get("requires", ())

0 commit comments

Comments
 (0)
0