Closed Luobots closed 2 years ago
The value in d["post_processing"] isn't always belong to callable function but str, I fix it by using eval() in a lightweight way.
d["post_processing"]
callable function
str
eval()
Sometimes the value in d["post_processing"] is a lambda-style str like "lambda x:x.strip('.')", so the eval() works.
"lambda x:x.strip('.')"
The value in
d["post_processing"]
isn't always belong tocallable function
butstr
, I fix it by usingeval()
in a lightweight way.