From 0df3d9ced743ac3385dd710c7133a6cf369b051c Mon Sep 17 00:00:00 2001 From: Radu Nicolae Date: Mon, 16 Jun 2025 18:01:07 +0200 Subject: integrated M3SA, updated with tests and CpuPowerModels --- .../src/main/python/utils.py | 25 ---------------------- 1 file changed, 25 deletions(-) delete mode 100644 opendc-experiments/opendc-experiments-m3sa/src/main/python/utils.py (limited to 'opendc-experiments/opendc-experiments-m3sa/src/main/python/utils.py') diff --git a/opendc-experiments/opendc-experiments-m3sa/src/main/python/utils.py b/opendc-experiments/opendc-experiments-m3sa/src/main/python/utils.py deleted file mode 100644 index fd4fec2e..00000000 --- a/opendc-experiments/opendc-experiments-m3sa/src/main/python/utils.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys - -""" -Constants for the main.py file -""" - -SIMULATION_ANALYSIS_FOLDER_NAME = 'simulation-analysis' -EMISSIONS_ANALYSIS_FOLDER_NAME = 'carbon_emission' -ENERGY_ANALYSIS_FOLDER_NAME = 'power_draw' - -""" -Utility functions -""" - - -def clean_analysis_file(metric): - analysis_file_path = SIMULATION_ANALYSIS_FOLDER_NAME + "/" - if metric == "power_draw": - analysis_file_path += ENERGY_ANALYSIS_FOLDER_NAME - else: - analysis_file_path += EMISSIONS_ANALYSIS_FOLDER_NAME - analysis_file_path += "/analysis.txt" - - with open(analysis_file_path, "w") as f: - f.write("") -- cgit v1.2.3