summaryrefslogtreecommitdiff
path: root/opendc-experiments/opendc-experiments-m3sa/src/main/python/utils.py
diff options
context:
space:
mode:
authorRadu Nicolae <rnicolae04@gmail.com>2025-06-16 18:01:07 +0200
committerGitHub <noreply@github.com>2025-06-16 18:01:07 +0200
commit0df3d9ced743ac3385dd710c7133a6cf369b051c (patch)
treeeff5d6d67c275643e229731ba08c5fe7dc4ccd0a /opendc-experiments/opendc-experiments-m3sa/src/main/python/utils.py
parentc7e303ad1b5217e2ff24cee9538ac841d6149706 (diff)
integrated M3SA, updated with tests and CpuPowerModels
Diffstat (limited to 'opendc-experiments/opendc-experiments-m3sa/src/main/python/utils.py')
-rw-r--r--opendc-experiments/opendc-experiments-m3sa/src/main/python/utils.py25
1 files changed, 0 insertions, 25 deletions
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("")