MaC-Perez / Hydra-self-testing

0 stars 0 forks source link

automated simulations #3

Closed MaC-Perez closed 1 year ago

MaC-Perez commented 1 year ago

Hi Gavin, I just updated the simulation Github Project.

I already have the simulation code and a folder with 30 simulations to start, but when I tried to run for example 10 sim at the same time using

sim_data <- NULL isim <- 1

for (isim in 1:10) {

https://github.com/MaC-Perez/Hydra-self-testing/blob/98ace1419155f1b17795a7f22c82b3140e503f4e/hydra_sim.R#L117

I got an error. I think it's because I am using the same name for my HydraDataList object. So, I am reusing an object that is in use within the same loop. This is the part that I need to check.

https://github.com/MaC-Perez/Hydra-self-testing/blob/98ace1419155f1b17795a7f22c82b3140e503f4e/hydra_sim.R#L303