Ignore:
Timestamp:
05/22/09 21:56:05 (15 years ago)
Author:
mwajcht
Message:
  1. Fixed bug in converter.
  2. Genotypes with resulting F1 genotype longer than 1500 characters will not be converted.
  3. Simplified choosing different condition.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/f8-to-f1/conv_f8tof1.cpp

    r1 r7  
    601601                int position = firstProduction->parameters.getParameterPosition(stringToSString(iter->first));
    602602                //cout << "position of " << iter->first << ": " << position << endl;
    603                 //params.insert(params.begin() + (position - 1), iter->second);
    604                 params[position - 1] = iter->second;
     603                params.insert(params.begin() + (position - 1), iter->second);
     604                //params[position - 1] = iter->second;
    605605        }
    606606       
     
    646646                if (a != NULL) {
    647647                        dst += a->getF1Genotype(p);
     648                        if (dst.len() > 1500) {
     649                                return ""; //genotype becomes too long so we abort conversion
     650                        }
    648651                }
    649652        }
Note: See TracChangeset for help on using the changeset viewer.