From f4c8ea2b77c6aa957b20f0c11ca5c8944216d251 Mon Sep 17 00:00:00 2001 From: Younes Strittmatter Date: Wed, 6 Sep 2023 07:31:59 +0200 Subject: [PATCH] docs: fix doctest to use correct function --- src/autora/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/autora/state.py b/src/autora/state.py index 61e1ca27..fdb8f4be 100644 --- a/src/autora/state.py +++ b/src/autora/state.py @@ -765,7 +765,7 @@ def inputs_from_state(f, input_mapping: Dict = {}): ... new_conditions = [x + 10 for x in X] ... return new_conditions >>> experimentalist_on_state = inputs_from_state(experimentalist_, {'X': 'conditions'}) - >>> experimentalist(U(conditions=[1,2,3,4])) + >>> experimentalist_on_state(U(conditions=[1,2,3,4])) [11, 12, 13, 14] Both also work with the `State` as UserDict. Here, we use the StandardState