new_eval_data_comp = {
const new_eval_data_comp = [];
new_eval_data.forEach(function(r) {
var new_row = Object.assign({}, r);
if (r !== undefined && r.morph_par !== undefined) {
const s = r.morph_par.split(/(['A-Z'])/);
const Z = s[2];
const Y = s[4];
const X = s[6];
const W1 = s[8];
var V1 = s[10];
if (s[10] !== undefined) {
V1 = s[10].split('_')[0];
}
const h1 = s[11]+s[13]+s[15];
const W2 = s[18];
var V2 = s[10];
if (s[20] !== undefined) {
V2 = s[20].split('_')[0];
}
const h2 = s[21]+s[23]+s[25];
r.components = {'Z': Z, 'Y': Y,'X': X,'W1': W1,'V1': V1,'h1': h1,'W2': W2,'V2': V2,'h2': h2};
}
new_eval_data_comp.push(new_row);
})
return new_eval_data_comp;
}