Allow passing arguments to map
on DynamicOutput
#3897
ivanov-slk
started this conversation in
Ideas
Replies: 1 comment
-
Thanks for the idea, we'll take this in to consideration. Just to note, in the mean time some ways to deal with this are to use
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently one is able to invoke a solid on each element of an Iterable like this:
However, this allows the callable solid (
print_num
in this case) to accept only one argument. If I'm not wrong, this is specified indagster.core.definitions.composition.InvokedSolidDynamicOutputWrapper.map
, where themap
method accepts only a callable. This is inconvenient if the mappable function requires additional arguments set at runtime (i.e. outside of theconfig_schema
).A possible solution would look in the lines of:
Beta Was this translation helpful? Give feedback.
All reactions