Skip to content

Commit

Permalink
Merge pull request #439 from peterjc/sim_errors_diagonal
Browse files Browse the repository at this point in the history
Default diagonal for sim-errors should be zero
  • Loading branch information
widdowquinn authored Oct 16, 2024
2 parents c5539a4 + ea00f32 commit d224ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyani/pyani_orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ def update_comparison_matrices(session, run) -> None:
# Set appropriate diagonals for each matrix
np.fill_diagonal(df_identity.values, 1.0)
np.fill_diagonal(df_coverage.values, 1.0)
np.fill_diagonal(df_simerrors.values, 1.0)
np.fill_diagonal(df_simerrors.values, 0.0)
np.fill_diagonal(df_hadamard.values, 1.0)
for genome in run.genomes.all():
df_alnlength.loc[genome.genome_id, genome.genome_id] = genome.length
Expand Down

0 comments on commit d224ced

Please sign in to comment.