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

Prevent pulse_height_fit from throwing dtype warning with floats #456

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

alex-l-kong
Copy link
Contributor

What is the purpose of this PR?

When trying to set floating point values to pulse_height_fit, the new standard for pandas will throw a warning because we initialized them with the integer 0.

How did you implement your changes

Instead of initializing with 0, initialize with 0.0 so floating point values are used.

@alex-l-kong alex-l-kong self-assigned this Dec 13, 2023
Copy link

@bryjcannon bryjcannon left a comment

Choose a reason for hiding this comment

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

Works - no more dtype warning

@alex-l-kong alex-l-kong merged commit 8b09afb into main Dec 13, 2023
4 of 5 checks passed
@alex-l-kong alex-l-kong deleted the normalize_dtype branch December 13, 2023 23:42
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