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

chore: Convert xarray variables to numpy arrays for consistent operat… #443

Merged
merged 1 commit into from
May 18, 2024

Conversation

selipot
Copy link
Member

@selipot selipot commented May 10, 2024

…ions in kinematics.velocity_from_position and kinematics.position_from_velocity
fix #440

…ions in kinematics.velocity_from_position and kinematics.position_from_velocity
@selipot selipot added the bug Something isn't working label May 10, 2024
@selipot selipot requested a review from milancurcic May 10, 2024 19:13
@selipot selipot self-assigned this May 10, 2024
@philippemiron
Copy link
Contributor

I don't know if someone has time, but keeping the DataArray would be better than just converting to numpy array.

@selipot
Copy link
Member Author

selipot commented May 11, 2024

In which ways @philippemiron ? Other functions in this module typically return numpy arrays when the inputs are dataarrays.

@philippemiron
Copy link
Contributor

Oh ok. I thought most of them were preserving types. I guess it's fine then.

@selipot selipot marked this pull request as ready for review May 18, 2024 14:24
@selipot selipot merged commit 1224972 into Cloud-Drift:main May 18, 2024
14 checks passed
@selipot selipot deleted the xr-kin-fix branch May 18, 2024 16:29
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
Development

Successfully merging this pull request may close these issues.

🐛 clouddrift.kinematics.velocity_from_position fails for xarray input with difference_scheme="centered"
2 participants