Ignore:
Timestamp:
07/09/20 00:13:20 (4 years ago)
Author:
Maciej Komosinski
Message:

Building a Model from Geno now fails when Model.shape is incompatible with Geno.format; renamed enum constants for genetic formats: xxx_FORMAT => FORMAT_xxx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/geno.h

    r972 r988  
    5555
    5656public:
    57         static const SString INVALID_FORMAT;
    58         static const SString UNKNOWN_FORMAT;
     57        static const SString FORMAT_INVALID;
     58        static const SString FORMAT_UNKNOWN;
    5959        typedef SListTempl<GenoValidator*> Validators;
    6060
     
    9393
    9494        /** @param genformat="" -> detect genotype format from genstring comment (like the constructor does), else specify the valid format in genformat and pure genes in genstring. */
    95         void setGenesAndFormat(const SString& genstring, const SString& genformat = UNKNOWN_FORMAT);
     95        void setGenesAndFormat(const SString& genstring, const SString& genformat = FORMAT_UNKNOWN);
    9696        /** g must be pure genes, without format. For the standard behavior use setGenesAndFormat() */
    9797        void setGenesAssumingSameFormat(const SString& g);
Note: See TracChangeset for help on using the changeset viewer.