Coverage of numpy functions for Quantity is now complete, but there are a few left-overs in the long tracking issue (#8825), which seem sufficiently separate that it is better to create a new one. This also allows to add something new, which is documentation (clearly needed, given e.g. #10573).
Coverage of numpy functions for
Quantityis now complete, but there are a few left-overs in the long tracking issue (#8825), which seem sufficiently separate that it is better to create a new one. This also allows to add something new, which is documentation (clearly needed, given e.g. #10573).Quantityinput for different numpy functions. Should be auto-generated and ideally uses docstrings from the routinesastropy/quantity_helpers/function_helpers. An explicit example that has come up isnp.logspace- see logspace does not work with quantities since version 4 #10573; edit (2024-01-24): could use the same mechanism as done forMasked; see https://docs.astropy.org/en/latest/utils/masked/index.html#module-astropy.utils.masked.function_helpers.LogQuantitysuch asMagnitudeAngles such asLongitudelikeargument tonp.zeros,np.ones,np.empty,np.arange, and other functions (new in numpy 1.20; see ENH: implement NEP-35'slike=argument numpy/numpy#16935)