Closed hagrid67 closed 11 months ago
created branch 36_env_edit_utils
(although so far I haven't had to touch env_edit_utils.py
)
Closing this now that Martin Buerki @tinubuerki has kindly approved the pull request. (I forgot to add this issue to the PR for automatic closing)
Objectives
Wider objective:
env_edit_utils::makeTestEnv
to create some minimalrailenv
s to illustrate the graph representation; currently in use insimple-graph-plot-2022.ipynb
Todos
What needs to be done for the issue to be done and the objectives to be reached:
transition_map::set_transition
which introduced an over-zealous type check forint
whenbool
is also admissible. So I've changed the check to look fornp.ndarray
and used value.ravel()[0] to extract the element value, which works whether the value is a zero-d or 1-d array. (ie np.array(1) or np.array([1]) both work)Minimal testing requirements
What functionality shall be covered by a test (qualitatively describe each test):