gadget-framework / gadgetplots

Plot gadget3 models
https://gadget-framework.github.io/gadgetplots/
GNU General Public License v3.0
0 stars 2 forks source link

ensure params$value is a vector #1

Closed willbutler42 closed 2 years ago

willbutler42 commented 2 years ago

if params$value is a list (which it typically is) it is turned into vector prior to calculating rho

lentinj commented 2 years ago

The reason param$value is a list is it's possible under TMB to have vectors longer than 1 as parameters. This is basically unused by us though, and support has atrophied somewhat. However, it'll be very useful when finally doing automatic conversion of missing data -> random variables.

Even when this happens, unlist may do what you want anyway, but thought some background in case it's useful :)