-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very poor performance with Angle.__str__ and Angle._repr_latex_ #6995
Comments
It seems clear that it is representing all the items -- the solution likely is to pass on our own formatter to |
@astrofrog @mhvk I would like to work on this issue. I noticed that the |
@vermashresth - yes, that was the idea - really mostly you'll need to check that the output looks right! |
@mhvk I have a doubt. Presently, the |
@vermashresth - we should not change
I have not checked at all to what extend this slows down the more typical case, where there are not so many items. |
@mhvk Oh, earlier I was only trying it inside the |
Great! I think no additional tests are needed - this would be a |
The following illustrates very poor performance with
Angle.__str__
andAngle._repr_latex_
with arrays:This poor performance is unnecessary since only a few items are returned in the strings, and the rest is
...
This is not an issue with Quantity or Distance, but does percolate up to e.g. SkyCoord I think.
The text was updated successfully, but these errors were encountered: