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.

Is astropy.units essential in more fields than just astronomy?

See original GitHub issue

Greetings. Thanks for a great set of packages!

It’s difficult to think of a broader use case than the one for which astropy.units was designed—for computation using physical quantities!

I am very new to this project and I don’t want to step on any toes. Still, I can’t help but wonder if astropy.units should be “advertised” as bigger than only astronomy. A subset of possible mechanisms for this includes moving the module outside the astropy namespace, and/or listing a variety of other domains for which it’s a great fit in the documentation, and/or writing an official blog post (though I don’t believe Astropy has a blog?).

Generally, What do you all think?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

9reactions
namurphycommented, Dec 13, 2017

Come to think of it, I also use astropy.units.imperial really frequently while cooking, instead of having to remember the nonsensical unit conversions we have to deal with in the U.S.

I’ll probably also use astropy.units if I ever write a vegan cookbook using horrible but surprisingly convenient units like barn-megaparsecs:

>>> from astropy import units
>>> (1*units.barn*units.Mpc).to(units.imperial.tsp)
<Quantity 0.6260350298930571 tsp>
2reactions
bsipoczcommented, Nov 29, 2017

One idea I had at some point would be to create a package that contains no code but just imports from astropy.units - this would just help with the branding issue, but still use astropy behind the scenes 😉

or just raise awareness that astropy is overall a useful package 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Units and Quantities (astropy.units) — Astropy v5.2
The most convenient way to create a Quantity is to multiply or divide a value by one of the built-in units. It works...
Read more >
Week 14 - Astropy - | notebook.community
Astropy is a package that is meant to provide a lot of basic functionality for astronomy work in Python. This can be roughly...
Read more >
Ideas page for Google Summer of Code 2016 - OpenAstronomy
Ideas page for GSoC 2016. Browse ideas for the following projects: Astropy. CasaCore. IMS. JuliaAstro. SunPy. yt. For each participating project, the ideas ......
Read more >
astropy-workshop/astropy_coordinates.ipynb at main - GitHub
Astronomers use a wide variety of coordinate systems and formats to represent sky coordinates ... In the above initializations, we passed in astropy.units....
Read more >
99130G.pdf - Caltech AUTHORS
astronomy Python software should be developed and it is clear that by the time LSST ... Astropy ecosystem is one of the more...
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