Skip to content

Commit

Permalink
docs: fix doctest to use correct function
Browse files Browse the repository at this point in the history
  • Loading branch information
younesStrittmatter committed Sep 6, 2023
1 parent 892c48d commit f4c8ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autora/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f4c8ea2

Please sign in to comment.