Inherit from quantity

Code as it currently stands. Only issue that I know of is that it returns a Quantity rather than UQuantity if initialized with a Quantity object or under any of the math operation (__add__, __sub__, etc).
I actually have it as "if self.uncertainty is not None:" right now, just
pushed it to master rather than inherit-from-quantity accidentally.


On Mon, Jun 16, 2014 at 6:16 PM, Wolfgang Kerzendorf <
notifications@github.com> wrote:

> In uquantity/core.py:
>
> > \ No newline at end of file
> > +        self = super(UQuantity, cls).__new__(
> > +                cls, value, unit, dtype=dtype, copy=copy)
> > +        if isinstance(value, u.Quantity):
>
> Avoid type checking, use duck typing instead (see
> http://sayspy.blogspot.ca/2008/12/why-explicit-type-checking-is-mostly.html).
>
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/wkerzendorf/uquantity/pull/1/files#r13833834>.
>