jsherfey/dnsim

params.mat mixes up variables of different mechanisms

Opened this issue · 2 comments

Examples given:

External Poisson has variables from elsewhere:
MSN_extPoissonInputCoderEnabled_cm
MSN_extPoissonInputCoderEnabled_g_m

All other mechanisms also have external Poisson variables:
MSN_kCurrentMSN_g_ext
MSN_kCurrentMSN_rate_ext
MSN_kCurrentMSN_tau_ext

This seems to happen for the parameters which value is replaced in the main script.

This may not be an error --

Parameters that are specified by the user are considered global parameters in that they override any default values given in any of the mechanisms. They are defined for each mechanism so that they will be used if (and only if) they appear in any mechanism.

However, if this occurs for parameters that were not specified by the user, then this would be an error.

Ok, but that is weird (confusing behavior, i.e. unexpected). How difficult would be to check whether the parameter exist and if not, do not process it further?