question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Review astropy.units performance tips

See original GitHub issue

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
astrojuanlucommented, Apr 12, 2020

Another cheap improvement:

$ grep -E 'to\(u.(.*)\).value' src/ -r | wc -l
158

Replace those by q.to_value(unit), see above.

1reaction
jonpsycommented, Mar 19, 2020

@priyanshurohilla or anyone in that matter, Why not try in your computer the changes I made as suggested in #857 ? Maybe it’s an intrinsic problem of my computer.Let’s get that cleared, then we can get to the root of it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Considerations on the performance of astropy.units #7438
We also tried Pint, and it's not faster than astropy.units. In fact, it was much slower. Pint has these tips to improve performance...
Read more >
Performance Tips — Astropy v5.2
Consider the performance tips that apply to quantities when initializing and evaluating models with quantities. Page Contents. Performance Tips. «.
Read more >
Building an Open-science Project and Status of the v2.0 Core ...
This process of listing and promoting affiliated packages is one way in which the Astropy Project tries to increase code re-use in the...
Read more >
Astropy quantity in-place conversion - Stack Overflow
1 Answer 1 ... None of these ways copy the Numpy array, so are OK performance-wise for many applications. I don't think there...
Read more >
I would go one step further and suggest that all physical ...
Having everything work this way makes it so much easier to review code for errors. Without this means that as a reviewer you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found