-
Notifications
You must be signed in to change notification settings - Fork 34
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
Empty arrays as components #116
Comments
Perhaps the issue is more subtle than I naively thought: |
Thanks for opening the issue, @william-macready. It looks like there are actually a few problems here, some more easily fixable than others:
The issue here is that I never really designed array-valued components to hold plain arrays. They can hold values or they can hold ComponentArrays (all of the same type, of course), but not plain arrays. The empty arrays in Fixing this may need a new |
Thank you for the explanations Jonnie.
Thanks for a very useful package! |
I'd like to be able to use ComponentArrays with some fields containing empty data arrays. For example,
ComponentVector(a=Int[], b=1)
andComponentVector(a=[Int[]], b=1)
both work fine. However,fails due to a zero step-size in a range used in the
partition
function in utils.jlIs there a simple fix?
The text was updated successfully, but these errors were encountered: