Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix rail_from_grid_transition_map #17

Open
mmarti-tsch opened this issue May 25, 2023 · 1 comment
Open

fix rail_from_grid_transition_map #17

mmarti-tsch opened this issue May 25, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@mmarti-tsch
Copy link
Contributor

mmarti-tsch commented May 25, 2023

At the moment, rail_from_grid_transition_map has some unexpected usage/behaviour:

instead of e.g.
rail, rail_map, optionals = make_simple_rail()
rail_gen = rail_from_grid_transition_map(rail_map=rail_map, optionals=optionals)

which results in
AttributeError: 'numpy.ndarray' object has no attribute 'grid'

we have to use
rail, rail_map, optionals = make_simple_rail()
rail_gen = rail_from_grid_transition_map(rail_map=rail, optionals=optionals)

@mmarti-tsch mmarti-tsch added the enhancement New feature or request label May 25, 2023
@aiAdrian
Copy link
Contributor

aiAdrian commented Jun 6, 2023

def make_simple_rail() -> Tuple[GridTransitionMap, np.array]:
....
return rail, rail_map, optionals

The return is not equal to the "typing" defintion. -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants