Get a value from a per-tile configuration list, using the last value if the list is shorter.
(self, value_list, tile_index)
| 574 | ) |
| 575 | |
| 576 | def _get_per_tile_value(self, value_list, tile_index): |
| 577 | """Get a value from a per-tile configuration list, using the last value if the list is shorter.""" |
| 578 | return value_list[min(tile_index, len(value_list) - 1)] |
| 579 | |
| 580 | def _parse_comma_separated_string( |
| 581 | self, config_string, default_value, converter_func, optional_total_size=None |
no outgoing calls
no test coverage detected