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

Add generic setfield fallbacks. #454

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Add generic setfield fallbacks. #454

merged 1 commit into from
Dec 20, 2024

Conversation

evetion
Copy link
Collaborator

@evetion evetion commented Dec 16, 2024

Encountered in GeoDataFrames when trying to write data with FixedPointNumbers (via LasIO). This PR allows writing any Real (converted to Float64) and Integer (converted to Int64). I've chosen the widest types possible.

I feel this is a better approach than making many package extensions for each new Number out there (which still can be done with these changes).

@evetion evetion requested review from visr and rafaqz December 16, 2024 19:12
@rafaqz
Copy link
Collaborator

rafaqz commented Dec 16, 2024

Seems sensible, but can't say I really understand stand these internals, I've never used setfield! on features.

Probably @yeesian knows better

@evetion evetion requested a review from yeesian December 16, 2024 19:40
Copy link
Collaborator

@visr visr left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@evetion evetion merged commit d157063 into master Dec 20, 2024
10 of 11 checks passed
@evetion evetion deleted the feat/setfield-fallback branch December 20, 2024 13:24
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.

3 participants