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

grep_more_ioc fix pandas silent downcasting spam #225

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

aberges-SLAC
Copy link
Contributor

Description

Small fix to close #224 spamming terminal with the future warnings. Kind of a weird problem for these calls in pandas, take a look at pandas-dev/pandas#57734 if you're interested.

Motivation and Context

Wanted to fix the warning spam and stay ahead of changes

How Has This Been Tested?

Have ran grep_more_ioc locally on my branch and confirmed the spam goes away and the script works as intended:
image
image

Where Has This Been Documented?

This PR

Copy link
Contributor

@tangkong tangkong left a comment

Choose a reason for hiding this comment

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

Huh that's annoying. This seems right to me, though I wish we could just use the proper syntax and not have to revise this if / when we move to pandas 3.0

@aberges-SLAC
Copy link
Contributor Author

Huh that's annoying. This seems right to me, though I wish we could just use the proper syntax and not have to revise this if / when we move to pandas 3.0

Yeah it's extremely annoying that the only way to make it go away is to opt into the future behavior, even if you avoided down casting in the first place.

@aberges-SLAC aberges-SLAC merged commit 614c19e into pcdshub:master Nov 21, 2024
2 checks passed
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.

Pandas 3.0 future warning on downcasting spam
2 participants