Changeset 1019


Ignore:
Timestamp:
07/21/20 14:45:30 (3 months ago)
Author:
Maciej Komosinski
Message:

Better filename extensions for files with results; .gen was misleading in some cases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/FramsticksCLI.py

    r1014 r1019  
    3737        CROSSOVER_FILE = "child.gen"
    3838        DISSIMIL_CMD = "dissimil"
    39         DISSIMIL_FILE = "dissimilarity_matrix.gen"
     39        DISSIMIL_FILE = "dissimilarity_matrix.tsv"  # tab-separated values
    4040        ISVALID_CMD = "isvalid"
    41         ISVALID_FILE = "validity.gen"
     41        ISVALID_FILE = "validity.txt"
    4242        MUTATE_CMD = "mutate"
    4343        MUTATE_FILE = "mutant.gen"
     
    260260                for i in range(len(square_matrix)):
    261261                        assert square_matrix[i][i] == 0, "Not a correct dissimilarity matrix, diagonal expected to be 0"
    262                 assert (square_matrix == square_matrix.T).all(), "Probably not a correct dissimilarity matrix, expecting symmetry, verify this"
     262                assert (square_matrix == square_matrix.T).all(), "Probably not a correct dissimilarity matrix, expecting symmetry, verify this"  # could introduce tolerance in comparison (e.g. class field DISSIMIL_DIFF_TOLERANCE=10^-5) so that miniscule differences do not fail here
    263263                self.__cleanUpCommandResults(files)
    264264                return square_matrix
Note: See TracChangeset for help on using the changeset viewer.