Skip to content

Commit

Permalink
Merge pull request #34 from Nik-Stein/patch-1
Browse files Browse the repository at this point in the history
Update custom_control_environment.py
  • Loading branch information
positr0nium authored Jun 11, 2024
2 parents 3bf1f24 + bffbd1b commit b7a32ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qrisp/environments/custom_control_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def adaptive_control_function(*args, **kwargs):

# Check whether the function supports the ctrl_method kwarg and adjust
# the kwargs accordingly
if "ctrl_method" in list(inspect.getargspec(func))[0] and isinstance(env, ControlEnvironment):
if "ctrl_method" in list(inspect.getfullargspec(func))[0] and isinstance(env, ControlEnvironment):
kwargs.update({"ctrl_method" : env.ctrl_method})


Expand Down

0 comments on commit b7a32ac

Please sign in to comment.