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.

I am a new member of the galpy club.

After installation, I tried to integrate an orbit by copy one of its examples:

from astropy.coordinates import SkyCoord import astropy.units as u c= SkyCoord(ra=20.*u.deg,dec=30.*u.deg,distance=2.*u.kpc, pm_ra_cosdec=-10.*u.mas/u.yr,pm_dec=20.*u.mas/u.yr, radial_velocity=50.*u.km/u.s) o= Orbit(c)

However, it didn’t work. and I ened with the following error:

TypeError: ‘Longitude’ object with a scalar value does not support indexing

Could you please help me with this issue. Thank you in advance for your time and efforts.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Mohammad-Mardinicommented, Aug 12, 2019

Thank you again for your time and efforts. I will close this issue.

0reactions
jobovycommented, Aug 12, 2019

That indicates that the C extensions weren’t properly compiled (the code will still work, just much slower, which depending on what you are trying to do might not matter). The installation instructions have some tips on how to deal with this issue. Installing using conda might be the easiest way to get around this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Indexing: Definition and Uses in Economics and Investing
An index is a method to track the performance of a group of assets in a standardized way. Indexes typically measure the performance...
Read more >
Search engine indexing - Wikipedia
Search engine indexing is the collecting, parsing, and storing of data to facilitate fast and accurate information retrieval. Index design incorporates ...
Read more >
What is Indexing? - Definition from Techopedia
In general, indexing refers to the organization of data according to a specific schema or plan. In IT, the term has various similar...
Read more >
Find an Indexing Project — FamilySearch.org
Visit Web Indexing to search all of our indexing projects and to access the ... Select a region or country from the list...
Read more >
How Does Indexing Work | Tutorial by Chartio
Indexing is the way to get an unordered table into an order that will maximize the query's efficiency while searching. When a table...
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