Skip to content

Commit

Permalink
Merge pull request #1449 from ispras/glottochronology
Browse files Browse the repository at this point in the history
Glottochronology. Cleanup. -- #1435
  • Loading branch information
vmonakhov authored Jul 5, 2023
2 parents d60120b + 8b96faa commit 797dc34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lingvodoc/schema/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -13488,7 +13488,7 @@ def split_lex(lex):
distance = math.log(means_linked / means_total) / -0.14 if means_linked > 0 else 50
percent = means_linked * 100 // means_total if means_total > 0 else 0
distance_data_array[n1][n2] = round(distance, 2)
complex_data_array[n1][n2] = f"{distance_data_array[n1][n2]} ({percent}%)"
complex_data_array[n1][n2] = f"{distance_data_array[n1][n2]:.2f} ({percent}%)"

result = SwadeshAnalysis.export_dataframe(result_pool, complex_data_array, bundles)

Expand Down

0 comments on commit 797dc34

Please sign in to comment.