Skip to content

Commit 6b4652f

Browse files
committed
fix bug
1 parent 7c9256f commit 6b4652f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/utils/runExperiments.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ async function runExperimentsForGroupedConfig(currentConfig) {
108108
const timeStart = performance.now();
109109
const RUN_CONFIG_PATH = path.join(config.CONFIGS_DIR, "run_config.json");
110110
const allExperimentResults = [];
111-
111+
if (currentConfig.config_type === 0) {
112+
const CUSTOM_CONFIG_PATH = path.join(config.CONFIGS_DIR, "custom_config.json");
113+
writeJsonFile(CUSTOM_CONFIG_PATH, currentConfig.custom_config)
114+
}
112115
const configTypes = (currentConfig.config_type === -1)
113116
? Array.from({ length: 6 }, (_, i) => i + 1)
114117
: [currentConfig.config_type];

0 commit comments

Comments
 (0)