8000 Merge 1b3f72edef721b2dc91d4f736fe939bb89417a5b into 426564eca3efa7d84… · nipype/pydra@ac3c436 · GitHub
[go: up one dir, main page]

Skip to content

Commit ac3c436

Browse files
authored
Merge 1b3f72e into 426564e
2 parents 426564e + 1b3f72e commit ac3c436

File tree

4 files changed

+883
-6
lines changed

4 files changed

+883
-6
lines changed

docs/input_spec.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,9 @@ In the example we used multiple keys in the metadata dictionary including `help_
174174
(a specific input field will be sent).
175175
176176
177-
Validators
178-
----------
179-
Pydra allows for using simple validator for types and `allowev_values`.
180-
The validators are disabled by default, but can be enabled by calling
181-
`pydra.set_input_validator(flag=True)`.
177+
`shell_arg` Function
178+
--------------------
179+
180+
For convenience, there is a function in `pydra.mark` called `shell_arg()`, which will
181+
takes the above metadata values as arguments and inserts them into the metadata passed
182+
to `attrs.field`. This can be especially useful when using an IDE with code-completion.

pydra/mark/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from .functions import annotate, task
2+
from .shell import shell_task, shell_arg, shell_out
23

3-
__all__ = ("annotate", "task")
4+
__all__ = ("annotate", "task", "shell_task", "shell_arg", "shell_out")

0 commit comments

Comments
 (0)
0