hddm-devs / hddm

HDDM is a python module that implements Hierarchical Bayesian parameter estimation of Drift Diffusion Models (via PyMC).
http://ski.clps.brown.edu/hddm_docs/
Other
268 stars 119 forks source link

Code at line 1297 in base.py can not work properly #100

Open Tamabala opened 1 year ago

Tamabala commented 1 year ago

Hi,

For the class HDDMbase in base.py, because the variable "include" was initially set as "()", the code "assert include is not None" at line 1297 can not prevent the user from leaving the include argument unassigned. (Instead, something like "len(include) != 0" can work)

Because of that, the error presented below will be reported because "include" is always empty. image

If I get it wrong and it is something else that causes the error above, please let me know, I would really appreciate it.

Best Wang