@smichr you are right if step_max > 40 is of type ``bool``, but not if its of type ``sympy.logic.boolalg.BooleanTrue``. 

```py:
    328 
--> 329             v = ['both', 'solid'][int(step_max > 40)]
    330         #try:

ipdb> print step_max
100
ipdb> type(step_max)
<class 'sympy.core.numbers.Integer'>
```