Skip to content

Commit e4ed944

Browse files
Changed all round functions to round to 1dp so everything is uniform
1 parent cb6388e commit e4ed944

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/analysis/analysis.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def _create_pie_plot_tdd_levels():
163163
# Update labels to include percentage values for each slice
164164
labels = ['Non TDD', 'Rarely TDD', 'Occasionally TDD', 'Somewhat TDD', 'Mostly TDD', 'Consistently TDD']
165165
for i in range(len(labels)):
166-
labels[i] = labels[i] + ' - ' + str(round(percentages[i], 0)) + '%'
166+
labels[i] = labels[i] + ' - ' + str(round(percentages[i], 1)) + '%'
167167

168168
# Clear any existing plot
169169
plt.clf()
@@ -206,7 +206,7 @@ def _create_pie_plot_overall_tdd_raw():
206206
# Update labels to include percentage values for each slice
207207
labels = ['TDD', 'Not TDD', 'Unclear']
208208
for i in range(len(labels)):
209-
labels[i] = labels[i] + ' - ' + str(round(percentages[i], 0)) + '%'
209+
labels[i] = labels[i] + ' - ' + str(round(percentages[i], 1)) + '%'
210210

211211
# Clear any existing plot
212212
plt.clf()
@@ -286,6 +286,7 @@ def create_plots():
286286
287287
todo -
288288
plot like the TDD cagetories pie, but for repo instead of author - modify _create_pie_plot_tdd_levels
289+
289290
bar chart for tdd percentace per langange - ignoring during
290291
291292
'''

0 commit comments

Comments
 (0)