Ignore:
Timestamp:
05/10/23 01:28:06 (12 months ago)
Author:
Maciej Komosinski
Message:

Updated f4->f1 approximate converter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/f4/f4_conv.cpp

    r1236 r1240  
    3939        SString out = model->getF0Geno().getGenes();
    4040        delete model;
     41
     42        /* quick debugging test - print an approximate f1 conversion of every genotype converted to f0:
     43        GenoConv_F41_TestOnly conv41;
     44        SString f1 = conv41.convert(in, NULL, false);
     45        printf("f1 = %s\n", f1.c_str());
     46        */
     47
    4148        return out;
    4249}
     
    4552GenoConv_F41_TestOnly::GenoConv_F41_TestOnly()
    4653{
    47         name = "Only for testing, approximate f4->f1 converter"; //Do not use in production! (adam)
     54        name = "Only for testing, approximate f4->f1 converter";
     55        // Why approximate? for example, f1 does not allow to continue after branching: X(X,X)X  <-- the last X
     56        // Some modifier genes are also not perfectly converted.
     57        // And neuron properties are ignored...
    4858        in_format = '4';
    4959        out_format = '1';
Note: See TracChangeset for help on using the changeset viewer.