|
33 | 33 | ] |
34 | 34 |
|
35 | 35 | def _read_scalar_result_file(file_name): |
36 | | - df = read_result_files(file_name, include_fields_as_scalars=True) |
| 36 | + df = read_result_files(file_name) |
37 | 37 | df = get_scalars(df, include_runattrs=True) |
38 | 38 | df = df if df.empty else df[["experiment", "measurement", "replication", "module", "name", "value"]] |
39 | 39 | return df |
@@ -104,6 +104,8 @@ def check_simulation_task_result(self, simulation_task_result, result_name_filte |
104 | 104 | if os.path.exists(current_vector_result_file_name): |
105 | 105 | run_command_with_logging(["opp_scavetool", "x", "--precision=17", "--type", "sth", "-w", current_scalar_result_file_name, current_vector_result_file_name, "-o", current_scalar_result_file_name]) |
106 | 106 | os.remove(current_vector_result_file_name) |
| 107 | + else: |
| 108 | + run_command_with_logging(["opp_scavetool", "x", "--precision=17", "--type", "sth", "-w", current_scalar_result_file_name, "-o", current_scalar_result_file_name]) |
107 | 109 | if os.path.exists(current_index_result_file_name): |
108 | 110 | os.remove(current_index_result_file_name) |
109 | 111 | _remove_attr_lines(current_scalar_result_file_name) |
@@ -218,6 +220,8 @@ def check_simulation_task_result(self, simulation_task_result, result_name_filte |
218 | 220 | if os.path.exists(current_vector_result_file_name): |
219 | 221 | run_command_with_logging(["opp_scavetool", "x", "--precision=17", "--type", "sth", "-w", current_scalar_result_file_name, current_vector_result_file_name, "-o", current_scalar_result_file_name]) |
220 | 222 | os.remove(current_vector_result_file_name) |
| 223 | + else: |
| 224 | + run_command_with_logging(["opp_scavetool", "x", "--precision=17", "--type", "sth", "-w", current_scalar_result_file_name, "-o", current_scalar_result_file_name]) |
221 | 225 | if os.path.exists(current_index_result_file_name): |
222 | 226 | os.remove(current_index_result_file_name) |
223 | 227 | _remove_attr_lines(current_scalar_result_file_name) |
|
0 commit comments