You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The size function is very useful for determining the sizes of inputs, such that the size requested in the disks runtime attribute can be determined dynamically. However, the usefulness of size is limited by the fact that it can only operate on File and Array[File]. For more complex inputs it is common to bundle multiple files together into a collection, e.g.
I propose that we change the signature of size to:
Float size(X?, [String])
where X is either File or a compound type (Array, Map, Pair, Object, or struct) that contains File?s. The output is the sum of all sizes of all files contained within the argument value to any level of nesting.
jdidion
changed the title
Generalize size function to operate on collection-typed inputs
Generalize size function to operate on any collection-typed input
Jan 25, 2023
The
size
function is very useful for determining the sizes of inputs, such that the size requested in thedisks
runtime attribute can be determined dynamically. However, the usefulness ofsize
is limited by the fact that it can only operate onFile
andArray[File]
. For more complex inputs it is common to bundle multiple files together into a collection, e.g.I propose that we change the signature of
size
to:where
X
is eitherFile
or a compound type (Array
,Map
,Pair
,Object
, orstruct
) that containsFile?
s. The output is the sum of all sizes of all files contained within the argument value to any level of nesting.Draft implementation: https://github.com/openwdl/wdl/tree/531-generalize-size
The text was updated successfully, but these errors were encountered: