Address two more comments from @mhvk: Fixes a faulty logical expression in the if statement.  Changes usages of numpy.asarray to numpy.asanyarray in anticipation of Quantity support.