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
If I add the Lambdad transform in my stack in the MONAIViz panel, and I add the params keys=["image"] and func=lambda x: x.squeeze(), I receive the following error message:
Traceback (most recent call last):
File "C:/Projects/SlicerMONAIViz/MONAIViz/MONAIViz.py", line 537, in onRunTransform
t = eval(exp)
File "<string>", line 1
monai.transforms.Lambdad(keys=['image'], func=<function <lambda> at 0x0000017BD75F3280>)
^
SyntaxError: invalid syntax
I am not sure what's happening under the hood in this module - would a lambda eval even be possible?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi,
great tool so far! I am trying to apply a
Lambdad
function in my transform chain.For example, after
LoadImaged
I want to apply the transform:If I add the Lambdad transform in my stack in the MONAIViz panel, and I add the params
keys=["image"]
andfunc=lambda x: x.squeeze()
, I receive the following error message:I am not sure what's happening under the hood in this module - would a lambda eval even be possible?
Thanks in advance!
The text was updated successfully, but these errors were encountered: