simoncarrignon / mixed-transmission

GNU General Public License v3.0
1 stars 0 forks source link

modelVector() generates error most likely caused by social.learning() #21

Closed ercrema closed 9 months ago

ercrema commented 10 months ago

Running modelVector() using the test script testModel.R generates the following error:

Error in apply(pop[pool[[x]],paste0("t",1:ntraits,2,sum): dim(X) must have positive length

These refer to a series of lines in the social.learning() module: https://github.com/simoncarrignon/mixed-transmission/blob/c66b51e8e07567ffc737571eaa6bdc47c16a9e71/R/socialLearning.R#L194-L205

ercrema commented 9 months ago

Should be fixed with commit b29cf340883ec4a3d370646dffd78ceecd974856