Skip to content

Commit 96a21c9

Browse files
committed
remove old lambda transform error message
1 parent c5fd4b3 commit 96a21c9

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

bayesflow/adapters/transforms/filter_transform.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,6 @@ def from_config(cls, config: dict, custom_objects=None) -> "Transform":
8686
try:
8787
kwargs = deserialize(config["kwargs"])
8888
except TypeError as e:
89-
if transform_constructor.__name__ == "LambdaTransform":
90-
raise TypeError(
91-
"LambdaTransform (created by Adapter.apply) could not be deserialized.\n"
92-
"This is probably because the custom transform functions `forward` and "
93-
"`backward` from `Adapter.apply` were not passed as `custom_objects`.\n"
94-
"For example, if your adapter uses\n"
95-
"`Adapter.apply(forward=forward_transform, inverse=inverse_transform)`,\n"
96-
"you have to pass\n"
97-
'`custom_objects={"forward_transform": forward_transform, '
98-
'"inverse_transform": inverse_transform}`\n'
99-
"to the function you use to load the serialized object."
100-
) from e
10189
raise TypeError(
10290
"The transform could not be deserialized properly. "
10391
"The most likely reason is that some classes or functions "

0 commit comments

Comments
 (0)