We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3e41ea commit ed6189dCopy full SHA for ed6189d
orchestrator/modules/actuators/custom_experiments.py
@@ -335,6 +335,19 @@ def wrapper(
335
336
return observed_property_values
337
338
+ # Set the wrapper's __signature__ so it is (entity,experiment)
339
+ # This is required for the wrapped function to be used with ray.remote
340
+ import inspect
341
+
342
+ wrapper.__signature__ = inspect.Signature(
343
+ [
344
+ inspect.Parameter("entity", inspect.Parameter.POSITIONAL_OR_KEYWORD),
345
+ inspect.Parameter(
346
+ "experiment", inspect.Parameter.POSITIONAL_OR_KEYWORD
347
+ ),
348
+ ]
349
+ )
350
351
# If we were not given information on required/optional properties
352
# or parameterization try to infer it
353
# This function will log a critical error message and raise exception
0 commit comments