File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
examples/measure-self-profiling
experiment-runner/ConfigValidator/Config/Validation Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 11from EventManager .Models .RunnerEvents import RunnerEvents
22from EventManager .EventSubscriptionController import EventSubscriptionController
33from ConfigValidator .Config .Models .RunTableModel import RunTableModel
4- from ConfigValidator .Config .Models .FactorModel import FactorModel
54from ConfigValidator .Config .Models .RunnerContext import RunnerContext
65from ConfigValidator .Config .Models .OperationType import OperationType
76from ProgressManager .Output .OutputProcedure import OutputProcedure as output
87
9- from typing import Dict , List , Any , Optional
8+ from typing import Optional , Dict , Any
109from pathlib import Path
1110from os .path import dirname , realpath
1211
13- import os
14- import signal
15- import pandas as pd
1612import time
17- import subprocess
18- import shlex
1913
2014class 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments