You may want `linearity` to be a True/False value, rather than a string