summaryrefslogtreecommitdiff
path: root/opendc-experiments/opendc-experiments-m3sa/src/main/python/utils.py
diff options
context:
space:
mode:
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("")