Hi Peter, In the context of the discussion here, the fact that Quantity is a subclass and not a duck-type array makes no difference for scipy code - in either case, the code would eat the unit (if it would work at all). My only argument was that sub-classing is not particularly worse than trying to make a duck-type. In the end, it would seem to me for anything reasonably interesting, the code sadly becomes rather complex.
Anyway, for me, Quantity is mostly a way to avoid stupid mistakes with units - it has certainly helped save me lots of headaches already. All the best, Marten _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion