Changeset 1059


Ignore:
Timestamp:
01/22/21 18:01:04 (6 weeks ago)
Author:
Maciej Komosinski
Message:

Warn when the number of performance evaluations is different from the number of genotypes evaluated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/FramsticksCLI.py

    r1024 r1059  
    212212                if len(data) > 0:
    213213                        self.__cleanUpCommandResults(files)
     214                        assert len(genotype_list) == len(data), f"After evaluating {len(genotype_list)} genotype(s) got {len(data)} result(s)."
    214215                        return data
    215216                else:
     
    256257                EXPECTED_SHAPE = (len(genotype_list), len(genotype_list))
    257258                # print(square_matrix)
    258                 assert square_matrix.shape == EXPECTED_SHAPE, f"Not a correct dissimilarity matrix, expected {EXPECTED_SHAPE} "
     259                assert square_matrix.shape == EXPECTED_SHAPE, f"Not a correct dissimilarity matrix, expected {EXPECTED_SHAPE}"
    259260                for i in range(len(square_matrix)):
    260261                        assert square_matrix[i][i] == 0, "Not a correct dissimilarity matrix, diagonal expected to be 0"
Note: See TracChangeset for help on using the changeset viewer.