Chris Schopp
12/05/2023, 2:52 PM__name__
instead of typing out a str
.
node(
func=explode_missing_values,
...
name=explode_missing_values.__name__,
)
# is equivalent to
node(
func=explode_missing_values,
...
name="explode_missing_values",
)
If you're setting the node name to be the function name, this makes it so renaming the function and the node is just one step.datajoely
12/05/2023, 2:54 PMChris Schopp
12/05/2023, 2:55 PMJuan Luis
12/05/2023, 2:56 PMname=None
, I'm 100 % supportive of making func.__name__
the default if not givenJuan Luis
12/05/2023, 2:56 PMdatajoely
12/05/2023, 2:58 PMdatajoely
12/05/2023, 2:59 PMNone
python side, but Viz may do some guessworkJuan Luis
12/05/2023, 2:59 PMdatajoely
12/05/2023, 3:00 PMChris Schopp
12/05/2023, 3:07 PMname=None
and name=func.__name__
but the logger shows a minor difference:
None:
Running node: explode_missing_values([input]) -> [output]
___name___:
Running node: explode_missing_values: explode_missing_values([input]) -> [output]
datajoely
12/05/2023, 3:09 PMJuan Luis
12/05/2023, 4:13 PMmy point is we canโt squeeze it into 0.19.x right?I think it's safe to say we're in "feature freeze" mode atm, the release will come in a few days and we're squashing the last blockers
datajoely
12/05/2023, 4:17 PMMarc Gris
12/06/2023, 10:33 AMfunc.__name__
the default if not given_โJuan Luis
12/12/2023, 12:03 PMAnonymous nodes are given default names of the form, with the names of inputs and outputs separated by semicolons.<function_name>([in1;in2;...]) -> [out1;out2;...]