Ignore:
Timestamp:
09/08/15 23:37:28 (9 years ago)
Author:
oriona
Message:

Minor corrections, hibernation gene value changed to 1, param for stopping simulation added

File:
1 edited

Legend:

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

    r430 r432  
    55{
    66        colors = ["1.0,1.0,0.0","1.0,0.5,0.0"];
    7         chambers = [ ["0.0,0.0,0.0,", //longitudal
    8         "0.98089325428009, 0.00591040402650833, 0.00389722990803421,",
    9         "1.90962779521942, -0.256769120693207, -0.16194811463356,",
    10         "2.63965249061584, -0.727959632873535, -0.609036147594452,",
    11         "3.17575979232788, -1.34843015670776, -1.14828503131866,",
    12         "3.55273032188416, -2.22369408607483, -1.3917418718338,",
    13         "3.64916682243347, -3.11888360977173, -1.01666414737701,",
    14         "3.50461649894714, -3.84039807319641, -0.377427101135254,",
    15         "3.15921688079834, -4.50001525878906, 0.261153399944305,",
    16         "2.51528453826904, -5.16421365737915, 0.59241509437561,"],
    17         ["0.0,0.0,0.0,",  //coiled
     7        chambers = [ ["0.0,0.0,0.0,",  //coiled
    188        "1.08020961284637, -0.0597195439040661, -0.0393781512975693,",
    199        "1.08020961284637, -0.0597195439040661, -0.0393781512975693,",
     
    2515        "1.0958571434021, 0.316927701234818, -1.813929438591,",
    2616        "0.903768002986908, 1.11856341362, -2.53161096572876,",
    27         "0.21014116704464, 0.295340299606323, -2.45328187942505,"] ];
     17        "0.21014116704464, 0.295340299606323, -2.45328187942505,"],
     18        ["0.0,0.0,0.0,", //longitudal
     19        "0.98089325428009, 0.00591040402650833, 0.00389722990803421,",
     20        "1.90962779521942, -0.256769120693207, -0.16194811463356,",
     21        "2.63965249061584, -0.727959632873535, -0.609036147594452,",
     22        "3.17575979232788, -1.34843015670776, -1.14828503131866,",
     23        "3.55273032188416, -2.22369408607483, -1.3917418718338,",
     24        "3.64916682243347, -3.11888360977173, -1.01666414737701,",
     25        "3.50461649894714, -3.84039807319641, -0.377427101135254,",
     26        "3.15921688079834, -4.50001525878906, 0.261153399944305,",
     27        "2.51528453826904, -5.16421365737915, 0.59241509437561,"]];
    2828}
    2929
     
    3737        for (var i = 0; i < chamber_num; i++)
    3838        {
    39                 rad = getProperty(gen, "chamber_proculus") + getProperty(gen, "chamber_difference") * (i + 1); 
     39                rad = getProperty(gen, "chamber_proculus") + getProperty(gen, "chamber_difference") * (i + 1);
    4040                geno += "\n" + "p:" + chambers[species][i+1] + "sh=1,sx=" + rad + ",sy=" + rad + ",sz=" + rad + ",vr=" + colors[gen];
    4141        }
     
    4646        }
    4747
    48         if (species == 1) geno += "\nn:p=0,d=\"S\"";
     48        if (species == 0) geno += "\nn:p=0,d=\"S\"";
    4949
    5050        return geno;
     
    5555        if (mode["opt"] == 0) //initial
    5656        {
    57                 mode["cr"].user1 = {"min_repro_energies" : [max_chamber_energ[0][getProperty(0, "min_repro_energ")], max_chamber_energ[1][getProperty(1, "min_repro_energ")]], "hibernation" : 1 - mode["species"]};
     57                mode["cr"].user1 = {"min_repro_energies" : [max_chamber_energ[0][getProperty(0, "min_repro_energ")], max_chamber_energ[1][getProperty(1, "min_repro_energ")]], "hibernation" : mode["species"]};
    5858                mode["cr"].user2 = {"max_energy_level" : getProperty(0,"energies0"), "gen" : 0,  "hibernated" : 0, "species" : mode["species"], "reproduce" : 0};
    5959        }
Note: See TracChangeset for help on using the changeset viewer.