-
Notifications
You must be signed in to change notification settings - Fork 462
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
New package: SingleFieldStructArrays v0.3.2 #86584
New package: SingleFieldStructArrays v0.3.2 #86584
Conversation
JuliaRegistrator
commented
Jun 30, 2023
- Registering package: SingleFieldStructArrays
- Repository: https://github.com/OpenMDAO/SingleFieldStructArrays.jl
- Created by: @dingraha
- Version: v0.3.2
- Commit: c97c78ee8e6fd5773da3ba8b1918ec057a0dc8c4
- Reviewed by: @dingraha
- Reference: Register! OpenMDAO/SingleFieldStructArrays.jl#8
- Description: Make an Array of structs act like an Array of one of the fields of the struct.
UUID: 5dd5ea32-d67d-426d-b4ce-2ad113187929 Repo: https://github.com/OpenMDAO/SingleFieldStructArrays.jl.git Tree: 43cc507a55aec2c87ebac7927aa4081bffeb7ff4 Registrator tree SHA: f73a20c99934db92a256057d0d83ba394036a701
Your Since you are registering a new package, please make sure that you have read the package naming guidelines: https://julialang.github.io/Pkg.jl/dev/creating-packages/#Package-naming-guidelines-1 If you want to prevent this pull request from being auto-merged, simply leave a comment. If you want to post a comment without blocking auto-merging, you must include the text |
Seems like # either vanilla:
mapview(x->x.t, foos)
# or even, for convenience:
mapview(:t, foos)
# instead of
SingleFieldStructArray(foos, Val{:t}) The Not to discourage the package, especially in case if there are any non-trivial advantages of |
[noblock] Could you highlight what are the advantages of this package over |
@aplavin Excellent, thanks for the comment. As you might have guessed, I was unaware of both @jishnub Re: SingleFieldStructArrays.jl vs StructArrays.jl, my understanding is that they do opposite things. StructArrays.jl takes a struct of Arrays and makes it look like an Array of structs. SingleFieldStructArrays.jl takes an array of structs and makes it look like an array of one of the struct elements. |
This pull request has been inactive for 30 days and will be automatically closed 7 days from now. If this pull request should not be closed, please either (1) fix the AutoMerge issues and re-trigger Registrator, which will automatically update the pull request, or (2) post a comment explaining why you would like this pull request to be manually merged. [noblock] |
This pull request has been inactive for more than 30 days and has automatically been closed. Feel free to register your package or version again once you fix the AutoMerge issues. [noblock] |