Code to generate, plot, and calculate info about hex maze configurations and optimal barrier change sequences for the hex maze behavioral task used by the Berke Lab at UCSF.
add function plot_hex_maze_path_comparison to compare 2 mazes, highlighting the differences in optimal paths between each pair of reward ports
Closes #12
add optional argument show_permanent_barriers to give the option to show permanent barriers when plotting hex mazes. Default functionality is unchanged (This argument is False by default). Also adds optional argument show_edge_barriers which is True by default if the user chooses to show permanent barriers. Making this argument False only shows the permanent barriers in the middle of the maze. This argument is ignored if show_permanent_barriers=False (we never show permanent edge barriers without showing permanent center barriers)
Other updates
add option highlight_colors to match highlight_hexes. User can now specify multiple different groups of hexes to highlight on the maze in different colors. Default functionality is unchanged (if only one set of highlight_hexes is specified, they will be highlighted in darkorange)
make show_stats True by default to automatically show optimal path lengths on the maze. Most users prefer to show stats for most mazes
Closes #8
plot_hex_maze_path_comparison
to compare 2 mazes, highlighting the differences in optimal paths between each pair of reward portsCloses #12
show_permanent_barriers
to give the option to show permanent barriers when plotting hex mazes. Default functionality is unchanged (This argument is False by default). Also adds optional argumentshow_edge_barriers
which is True by default if the user chooses to show permanent barriers. Making this argument False only shows the permanent barriers in the middle of the maze. This argument is ignored ifshow_permanent_barriers
=False (we never show permanent edge barriers without showing permanent center barriers)Other updates
highlight_colors
to matchhighlight_hexes
. User can now specify multiple different groups of hexes to highlight on the maze in different colors. Default functionality is unchanged (if only one set ofhighlight_hexes
is specified, they will be highlighted in darkorange)show_stats
True by default to automatically show optimal path lengths on the maze. Most users prefer to show stats for most mazes