Added an index_formatter argument to all variants of add_vars and add_constrs (both accessors and global functions). Details are documented in docs/source/naming.rst, here are the key bits:
If no argument is provided, default replacement of illegal characters and whitespace with underscores:
Apply a function to each level in the index. If the user passes a mapping, this specifies functions to be applied to named index levels. If the user passes a callable, the callable is applied to every index level.
Added an
index_formatter
argument to all variants ofadd_vars
andadd_constrs
(both accessors and global functions). Details are documented in docs/source/naming.rst, here are the key bits:If no argument is provided, default replacement of illegal characters and whitespace with underscores:
index_formatter='disable'
switches off the behaviour:Apply a function to each level in the index. If the user passes a mapping, this specifies functions to be applied to named index levels. If the user passes a callable, the callable is applied to every index level.