@@ -5,7 +5,7 @@ Input Specification
55
66As it was mentioned in :ref: `shell_command_task `, the user can customize the input and output
77for the `ShellCommandTask `.
8- In this section, more examples of the input specification will be provided.
8+ In this section, more examples of the input definition will be provided.
99
1010
1111Let's start from the previous example:
@@ -27,29 +27,29 @@ Let's start from the previous example:
2727 ( " mask" , bool ,
2828 { " help_string" : " create binary mask" ,
2929 " argstr" : " -m" , } ) ],
30- bases = (ShellSpec ,) )
30+ bases = (ShellDef ,) )
3131
3232 ShellCommandTask(executable = " bet" ,
3333 input_spec = bet_input_spec)
3434
3535
3636
37- In order to create an input specification , a new `SpecInfo ` object has to be created.
37+ In order to create an input definition , a new `SpecInfo ` object has to be created.
3838The field `name ` specifies the type of the spec and it should be always "Input" for
39- the input specification .
40- The field `bases ` specifies the "base specification " you want to use (can think about it as a
41- `parent class `) and it will usually contains `ShellSpec ` only, unless you want to build on top of
42- your other specification (this will not be cover in this section).
39+ the input definition .
40+ The field `bases ` specifies the "base definition " you want to use (can think about it as a
41+ `parent class `) and it will usually contains `ShellDef ` only, unless you want to build on top of
42+ your other definition (this will not be cover in this section).
4343The part that should be always customised is the `fields ` part.
44- Each element of the `fields ` is a separate input field that is added to the specification .
44+ Each element of the `fields ` is a separate input field that is added to the definition .
4545In this example, three-elements tuples - with name, type and dictionary with additional
4646information - are used.
4747But this is only one of the supported syntax, more options will be described below.
4848
49- Adding a New Field to the Spec
49+ Adding a New Field to the Def
5050------------------------------
5151
52- Pydra uses `attr ` classes to represent the input specification , and the full syntax for each field
52+ Pydra uses `attr ` classes to represent the input definition , and the full syntax for each field
5353is:
5454
5555.. code-block :: python
@@ -152,15 +152,15 @@ In the example we used multiple keys in the metadata dictionary including `help_
152152`output_file_template` (`str ` ):
153153 If provided, the field is treated also as an output field and it is added to the output spec.
154154 The template can use other fields, e.g. `{file1}` .
155- Used in order to create an output specification .
155+ Used in order to create an output definition .
156156
157157`output_field_name` (`str ` , used together with `output_file_template` )
158158 If provided the field is added to the output spec with changed name.
159- Used in order to create an output specification .
159+ Used in order to create an output definition .
160160
161161`keep_extension` (`bool ` , default: `True ` ):
162162 A flag that specifies if the file extension should be removed from the field value.
163- Used in order to create an output specification .
163+ Used in order to create an output definition .
164164
165165`readonly` (`bool ` , default: `False ` ):
166166 If `True ` the input field can' t be provided by the user but it aggregates other input fields
0 commit comments