You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not very familiar with this package but I would guess that AbstractFloat is necessary because of the mod2pi call in the constructor, which given (for example) an integer argument would return a floating point value, therefore changing the type of the first argument.
SkyCoords tries to convert arguments to a common floating point type when constructed from generic reals, but if float() style conversion is not implemented for the alternate type this will not help.
Number types like MonteCarloMeasurements support all kinds of math (+/mod/...). They just subtype Real and not AbstractFloat, while the latter is currently required by SkyCoords.
There are quite some Julia packages that provide numbers
<: Real
but not<: AbstractFloat
. Currently, one cannot use them with SkyCoords:Can we relax the constraints in SkyCoords to
<: Real
? I'll be happy to make a PR for that.The text was updated successfully, but these errors were encountered: