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
"Wrong" order from names(chain, :parameters) #326
Comments
Part of this is because Lines 520 to 526 in b1e4c0e
Could this work for you? chain.value.axes[2].val |
But I'm getting the names from one specific section ( Line 513 in b1e4c0e
so it's not clear why the order would be wrong? Thanks for the suggestion! I think it's equivalent to params = names(ch)[1:length(names(ch, :parameters))] |
The MWE is fixed by #332. With the PR one gets julia> names(ch, :parameters)
4-element Vector{Symbol}:
:σ
:a
:c
:b |
Consider this example:
This plots the parameters in the order
σ
,a
,c
,b
. This matches the order of parameters in the underlying AxisArray. However, retrieving the parameter list withnames
gives a different order:My use case: I want to add things on the plots created by
plot(ch)
. To modify the plot for the ith parameter I can doplot!(..., subplot=2i)
. But I can't find a good way to get the list of parameters in the right order...The text was updated successfully, but these errors were encountered: