Skip to content
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

Problem with pystrometry/gaia_astrometry.py #26

Open
JanM1989 opened this issue Jan 13, 2025 · 0 comments
Open

Problem with pystrometry/gaia_astrometry.py #26

JanM1989 opened this issue Jan 13, 2025 · 0 comments

Comments

@JanM1989
Copy link

On line 733 in gaia_astrometry.py there is currently the following code:

ppm_signal_mas = orbit.ppm(iad.epoch_data['MJD'].values, psi_deg=np.rad2deg(
np.arctan2(iad.epoch_data['spsi_obs'], iad.epoch_data['cpsi_obs'])),
offsetRA_mas=attribute_dict['offset_alphastar_mas'], offsetDE_mas=attribute_dict['offset_delta_mas'],
externalParallaxFactors=iad.epoch_data['ppfact_obs'], verbose=True)

The code suggests that iad.epoch_data is expected to be a pandas.DataFrame, hence the column is a series, hence the attribute 'values' makes sense. However, using the code in different notebooks showed that the considered object may be an astropy.table in which case the attritube got to be 'value'. A check of the type of iad.epoch_data at least at this point of the code would therefore be reasonable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant