File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
refl1d/webview/client/src/components Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,10 @@ type Payload = {
37
37
contour_data: {
38
38
[model_name : string ]: {
39
39
z: number [],
40
- data: { [key : string ]: number [][][] },
41
- }
40
+ data: { [key : string ]: {
41
+ [contour_label : string ]: number [],
42
+ }},
43
+ },
42
44
},
43
45
contours: number [],
44
46
}
@@ -57,12 +59,10 @@ function get_csv_data() {
57
59
for (const [model_name, model_data] of Object .entries (data )) {
58
60
headers .push (` "${model_name } z" ` );
59
61
values .push (model_data .z );
60
- Object .keys (model_data .data ).forEach ((key ) => {
61
- contours_value .forEach ((c , ci ) => {
62
- headers .push (` "${model_name } ${key } (${c } lower)" ` );
63
- headers .push (` "${model_name } ${key } (${c } upper)" ` );
64
- values .push (model_data .data [key ][ci ][0 ]);
65
- values .push (model_data .data [key ][ci ][1 ]);
62
+ Object .entries (model_data .data ).forEach (([key , value ]) => {
63
+ Object .entries (value ).forEach (([c , v ]) => {
64
+ headers .push (` "${model_name } ${key } ${c }" ` );
65
+ values .push (v );
66
66
});
67
67
});
68
68
}
You can’t perform that action at this time.
0 commit comments