Skip to content

Commit dc902ce

Browse files
committed
Update chart generation
1 parent 18ba0f5 commit dc902ce

9 files changed

Lines changed: 12535 additions & 48 deletions

analysis/excercism_analysis.ipynb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,7 @@
11191119
},
11201120
{
11211121
"cell_type": "code",
1122-
"execution_count": null,
1122+
"execution_count": 8,
11231123
"id": "3f6e4c54",
11241124
"metadata": {},
11251125
"outputs": [
@@ -1968,7 +1968,7 @@
19681968
"font": {
19691969
"size": 16
19701970
},
1971-
"text": "Assertions Passed vs Failed by Model (Singleshot Evaluations)",
1971+
"text": "Assertions Passed vs Failed by Model (Multishot Evaluations)",
19721972
"x": 0.5,
19731973
"xanchor": "center"
19741974
},
@@ -2150,7 +2150,7 @@
21502150
},
21512151
{
21522152
"cell_type": "code",
2153-
"execution_count": 15,
2153+
"execution_count": 9,
21542154
"id": "35184d47",
21552155
"metadata": {},
21562156
"outputs": [
@@ -2239,6 +2239,7 @@
22392239
],
22402240
"layout": {
22412241
"barmode": "group",
2242+
"height": 600,
22422243
"legend": {
22432244
"orientation": "h",
22442245
"x": 1,
@@ -3033,6 +3034,7 @@
30333034
"x": 0.5,
30343035
"xanchor": "center"
30353036
},
3037+
"width": 1000,
30363038
"xaxis": {
30373039
"tickangle": 45,
30383040
"title": {
@@ -18652,7 +18654,7 @@
1865218654
"name": "python",
1865318655
"nbconvert_exporter": "python",
1865418656
"pygments_lexer": "ipython3",
18655-
"version": "3.10.18"
18657+
"version": "3.10.19"
1865618658
}
1865718659
},
1865818660
"nbformat": 4,

debug_chart.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import sys
2+
sys.path.append('report')
3+
from exercism_analysis import load_exercism_results
4+
from charts_and_tables import create_stacked_assertions_bar_chart
5+
6+
# Test data loading
7+
data = load_exercism_results('results/excercism')
8+
print(f'Data loaded: {len(data)} configurations')
9+
for k in data.keys():
10+
print(f'Key: {k}')
11+
12+
# Test chart creation
13+
if data:
14+
fig, df = create_stacked_assertions_bar_chart(data)
15+
print(f'Chart created with {len(df)} rows')
16+
if not df.empty:
17+
print('Sample data:')
18+
print(df.head())

0 commit comments

Comments
 (0)