soft-matter/pims — pull request #50 by tacaswell (2014-04-21 20:43:58+00:00)
Title: BUG : changed logic on converting to scalar

Instead of checking on size == 1 check on ndim == 0. This matters for `tt.sum()` (should covert to scalar) vs `tt.sum(keepdims=True)` (should not convert to scalar).