Ignore:
Timestamp:
08/01/15 16:32:10 (9 years ago)
Author:
oriona
Message:

invalid index error fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • experiments/frams/foraminifera/data/scripts/foraminifera.expdef

    r416 r418  
    2424- added "S" receptor to visualize the difference between diplo and haplo generations
    2525- signal.value is a MechPart (a reference) so it does not have to be updated after changing the object location
    26 */
    27 
    28 /* TODO fix
    29 [ERROR] Population.kill: Invalid index 35 (allowed range is 0..34)
    30 [ERROR] Population.kill: ... called from reproduce_haploid()  <foraminifera.inc:54>
    31 [ERROR] Population.kill: ... called from onStep()  <foraminifera.inc:228>
    3226*/
    3327
     
    6963        pop.othermask = 0x10000;
    7064
     65        //TODO remove unused params
     66
    7167        //radius of the chamber
    7268        ExpParams.rads = [1.2, 0.6];
     69        //ExpParams.rads = [2, 2];
    7370        //inital genotypes
    7471        ExpParams.genh = "//0\np:sh=1,sx=" + ExpParams.rads[0] + ",sy=" + ExpParams.rads[0] + ",sz=" + ExpParams.rads[0] + ", rz=3.14159265358979";
     
    8077        ExpParams.feedtrans = 3;
    8178        ExpParams.creath = -0.99; //just above the bottom
    82         ExpParams.foodgen = "//0\np:sh=2,sx=0.1,sy=0.1,sz=0.1\nn:d=T,p=0";
     79        ExpParams.foodgen = "//0\np:sh=2,sx=0.1,sy=0.1,sz=0.1\nn:d=T,p=0"; //TODO food size as param
    8380        ExpParams.autorestart = 0;
    8481        ExpParams.psize = 10;
     
    10299
    103100        //grwoth speed in time steps
    104         ExpParams.growth_step = 50;
     101        ExpParams.growth_step = 50; //50
    105102
    106103        ExpState.totaltestedcr = 0;
     
    308305                else
    309306                {
    310                         properSize = cr.user2["Va"] >= cr.user1[0]["vamin"];
     307                        properSize = cr.user2["Va"] >= cr.user1[0]["vamin"]; //TODO gene selection
    311308                }
    312309
     
    333330        geno.user1 = cr.user1;
    334331        geno.user2 = cr.user2;
    335         Simulator.print("\"" + cr.name + "\" died...");
     332        if (ExpParams.logging == 1) Simulator.print("\"" + cr.name + "\" died...");
    336333        ExpState.totaltestedcr++;
    337334}
     
    422419id:growth_step
    423420name:Growth step
    424 type:d 10 10000 1000
     421type:d -1 10000 1000
    425422
    426423prop:
Note: See TracChangeset for help on using the changeset viewer.