The names of decision models are hardcoded in the GUI and mapped to specific colors. It would be preferable if these were decided programatically.
We track which decision models are used in a particular simulation run (by looking at the configuration). We also have a range of colors provided in self.colors in the GUI. There should be a smart way to map the decision models in the simulation to colors in self.colors (with the exception of special colors, like for sugar and spice, which are off limits for hopefully obvious reasons).
Every time the interface determines to recolor based on decision model, it consults the color mapping and applies the proper color.
The names of decision models are hardcoded in the GUI and mapped to specific colors. It would be preferable if these were decided programatically.
We track which decision models are used in a particular simulation run (by looking at the configuration). We also have a range of colors provided in
self.colors
in the GUI. There should be a smart way to map the decision models in the simulation to colors inself.colors
(with the exception of special colors, like for sugar and spice, which are off limits for hopefully obvious reasons).Every time the interface determines to recolor based on decision model, it consults the color mapping and applies the proper color.