diff options
author | Arun Isaac | 2021-03-21 16:17:56 +0530 |
---|---|---|
committer | Arun Isaac | 2021-03-22 01:12:37 +0530 |
commit | 7d6123995ef311e2f239119e408fb48409e88662 (patch) | |
tree | e57e31c25cc09c586bcd7580d117465907e6905e | |
parent | 0fb0944aa69d461088bd03df869d884382734e19 (diff) | |
download | ccwl-7d6123995ef311e2f239119e408fb48409e88662.tar.gz ccwl-7d6123995ef311e2f239119e408fb48409e88662.tar.lz ccwl-7d6123995ef311e2f239119e408fb48409e88662.zip |
Remove input->tree abstraction.
<input> objects need to be expanded into CWL in context sensitive
ways. There is no simple generalization.
* ccwl/ccwl.scm (input->tree): Delete function.
(workflow): Expand input->tree.
-rw-r--r-- | ccwl/ccwl.scm | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/ccwl/ccwl.scm b/ccwl/ccwl.scm index dc05c82..a2f6d49 100644 --- a/ccwl/ccwl.scm +++ b/ccwl/ccwl.scm @@ -75,16 +75,6 @@ (_ #t)) alist)) -(define (input->tree input) - "Convert INPUT, an <input> object, to a tree." - `(,(input-id input) - ,@(filter-alist - `((type . ,(input-type input)) - (label . ,(input-label input)) - (default . ,(and (not (unspecified-default? (input-default input))) - (input-default input))))) - ,@(input-other input))) - (define-immutable-record-type <step> (make-step id run in out) step? @@ -184,7 +174,15 @@ re-matched." (class . Workflow) (requirements (Subworkflow-feature-requirement)) ,@other - (inputs . ,(map input->tree interface-inputs)) + (inputs . ,(map (lambda (input) + `(,(input-id input) + ,@(filter-alist + `((type . ,(input-type input)) + (label . ,(input-label input)) + (default . ,(and (not (unspecified-default? (input-default input))) + (input-default input))))) + ,@(input-other input))) + interface-inputs)) (outputs . ,(map (lambda (output) `(,(output-id output) (type . ,(output-type output)) |