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

DM-44159: Replace pandas.DataFrame usage with astropy.Table #978

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

taranu
Copy link
Contributor

@taranu taranu commented Sep 16, 2024

No description provided.

if is_match_target_pd:
catalog_match_target = astropy.table.Table.from_pandas(catalog_match_target)
if is_ref_pd or is_target_pd:
self.log.warning("pandas DataFrame inputs are deprecated")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a removal ticket and a proper deprecation warning as with meas_astrom.

columns_expect.extend((f'{prefix}{col}' for col in columns_ref))
self.assertEqual(columns_expect, columns_result)

row = result.diff_matched.iloc[0].values.astype(float)
row = np.array([float(x) for x in result.diff_matched[0].values()])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As on meas_astrom we're going to need to test the deprecated usage as well.

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

Successfully merging this pull request may close these issues.

2 participants