Open mhvk opened 1 month ago
Thanks @mhvk ! I opened #128 to fix the specific issue in https://github.com/astropy/astropy/issues/17096, and the default_unit
description and usage.
agreed, we should look into switching to SpecificTypeQuantity
. I don't think we otherwise have a specific need to inherit from Quantity
As I was looking at the
beam
code for https://github.com/astropy/astropy/issues/17096, I noticed a few oddities inBeam
. Mostly that it inherits fromQuantity
, which I'm not sure is a good idea given that some basic methods are overwritten and many others would not work (e.g., you'd need a proper__array_finalize__
to deal with slicing, etc.; right now, you'd lose the extra attributes with you dobeam[()]
). If there are real advantages to usingBeam
, I'd recommend usingSpecificTypeQuantity
.A second thing I happened to notice is that
default_unit
is not actually used as described in the docstring.Anyway, just flyby comments - hopefully of some use.