Skip to content

Commit 57e9963

Browse files
committed
Cleanup + small naming fix
1 parent 1680b57 commit 57e9963

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

examples/measure-self-profiling/RunnerConfig.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
from EventManager.Models.RunnerEvents import RunnerEvents
22
from EventManager.EventSubscriptionController import EventSubscriptionController
33
from ConfigValidator.Config.Models.RunTableModel import RunTableModel
4-
from ConfigValidator.Config.Models.FactorModel import FactorModel
54
from ConfigValidator.Config.Models.RunnerContext import RunnerContext
65
from ConfigValidator.Config.Models.OperationType import OperationType
76
from ProgressManager.Output.OutputProcedure import OutputProcedure as output
87

9-
from typing import Dict, List, Any, Optional
8+
from typing import Optional, Dict, Any
109
from pathlib import Path
1110
from os.path import dirname, realpath
1211

13-
import os
14-
import signal
15-
import pandas as pd
1612
import time
17-
import subprocess
18-
import shlex
1913

2014
class RunnerConfig:
2115
ROOT_DIR = Path(dirname(realpath(__file__)))
@@ -50,7 +44,7 @@ class RunnerConfig:
5044
5145
This parameter is optional and defaults to /usr/local/bin/energibridge
5246
"""
53-
felf_measure_bin: Path = "/usr/local/bin/energibridge"
47+
self_measure_bin: Path = "/usr/local/bin/energibridge"
5448

5549
# Dynamic configurations can be one-time satisfied here before the program takes the config as-is
5650
# e.g. Setting some variable based on some criteria

experiment-runner/ConfigValidator/Config/Validation/ConfigValidator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def validate_config(config: RunnerConfig):
7575
config.self_measure = False
7676

7777
if config.self_measure and not hasattr(config, "self_measure_bin"):
78-
config.self_measure_bin = "/usr/local/bin" # This is spesific to linux, might work for osx as well
78+
config.self_measure_bin = "/usr/local/bin/energibridge" # This is spesific to linux, might work for osx as well
7979

8080
# Convert class to dictionary with utility method
8181
ConfigValidator.config_values_or_exception_dict = class_to_dict(config)
@@ -114,4 +114,4 @@ def validate_config(config: RunnerConfig):
114114
)
115115

116116
if ConfigValidator.error_found:
117-
raise ConfigInvalidError
117+
raise ConfigInvalidError

0 commit comments

Comments
 (0)