File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 5
5
6
6
7
7
def traitedspec_to_specinfo (traitedspec ):
8
+ trait_names = set (traitedspec .copyable_trait_names ())
8
9
return pydra .specs .SpecInfo (
9
10
name = "Inputs" ,
10
11
fields = [
11
12
(name , attr .ib (type = ty .Any , metadata = {"help_string" : trait .desc }))
12
- for name , trait in traitedspec .traits ().items ()
13
+ for name , trait in traitedspec .traits ().items () if name in trait_names
13
14
],
14
15
bases = (pydra .engine .specs .BaseSpec ,)
15
16
)
@@ -49,7 +50,7 @@ def __init__(
49
50
name = None ,
50
51
** kwargs ,
51
52
):
52
- self .input_spec = traitedspec_to_specinfo (interface .input_spec () )
53
+ self .input_spec = traitedspec_to_specinfo (interface .inputs )
53
54
self ._interface = interface
54
55
if name is None :
55
56
name = interface .__class__ .__name__
@@ -62,7 +63,7 @@ def __init__(
62
63
cache_dir = cache_dir ,
63
64
cache_locations = cache_locations ,
64
65
)
65
- self .output_spec = traitedspec_to_specinfo (interface .output_spec ())
66
+ self .output_spec = traitedspec_to_specinfo (interface ._outputs ())
66
67
67
68
def _run_task (self ):
68
69
inputs = attr .asdict (self .inputs ,
You can’t perform that action at this time.
0 commit comments