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

[Bug]: Deprecation warning: incompatible dtype #13

Open
1 task done
JoschD opened this issue Jan 11, 2024 · 0 comments · May be fixed by #14
Open
1 task done

[Bug]: Deprecation warning: incompatible dtype #13

JoschD opened this issue Jan 11, 2024 · 0 comments · May be fixed by #14
Assignees
Labels
Bug Something isn't working

Comments

@JoschD
Copy link
Member

JoschD commented Jan 11, 2024

Documentation

  • Yes

Operating System

All

Python Version

All

Package Version

1.1.1

Bug Description

When running the correction calculation, a pandas deprecation warning pops up.

Steps to Reproduce

No response

Relevant output

FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '-0.039908794432020646' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.
  optics.twiss.loc[corrector.name, corrector.strength_component] = sign * corrector.value

Possible Fix Implementation

Set dtype of column to float.

@JoschD JoschD added the Bug Something isn't working label Jan 11, 2024
@JoschD JoschD self-assigned this Jan 11, 2024
@JoschD JoschD linked a pull request Jan 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant