Changeset 1019
- Timestamp:
- 07/21/20 14:45:30 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/FramsticksCLI.py
r1014 r1019 37 37 CROSSOVER_FILE = "child.gen" 38 38 DISSIMIL_CMD = "dissimil" 39 DISSIMIL_FILE = "dissimilarity_matrix. gen"39 DISSIMIL_FILE = "dissimilarity_matrix.tsv" # tab-separated values 40 40 ISVALID_CMD = "isvalid" 41 ISVALID_FILE = "validity. gen"41 ISVALID_FILE = "validity.txt" 42 42 MUTATE_CMD = "mutate" 43 43 MUTATE_FILE = "mutant.gen" … … 260 260 for i in range(len(square_matrix)): 261 261 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 263 263 self.__cleanUpCommandResults(files) 264 264 return square_matrix
Note: See TracChangeset
for help on using the changeset viewer.