Skip to content

Commit 34d1e0d

Browse files
committed
cleanup configs.py
1 parent 94f0e23 commit 34d1e0d

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

apps/runner/modules/configs.py

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -38,48 +38,6 @@ def generate_list(param: Parameter, paramName):
3838
return []
3939

4040

41-
# def generate_config_files(experiment: ExperimentData):
42-
# constants = {}
43-
# parameters = {}
44-
# gather_parameters(experiment.hyperparameters, constants, parameters)
45-
# explogger.info("param list: " + str(parameters))
46-
# explogger.info("const list: " + str(constants))
47-
48-
49-
# configDict = {}
50-
# configIdNumber = 0
51-
# for varyingKey, varyingVar in parameters.items():
52-
# explogger.info(f'Keeping {varyingVar} constant')
53-
# possibleParamVals = []
54-
55-
# #Required to do the cross product, since each config is made by
56-
# #doing a cross product of lists of name value pairs the default variable needs to be
57-
# #a single item list so that there is only one possible value for the default variable
58-
# possibleParamVals.append(generate_list(varyingVar, varyingKey))
59-
60-
# for otherKey, otherVar in parameters.items():
61-
# if otherKey != varyingKey:
62-
# possibleParamVals.append([(otherKey, get_default(otherVar))])
63-
# try:
64-
# permutations = list(itertools.product(*possibleParamVals))
65-
# except Exception as err:
66-
# raise GladosInternalError("Error while making permutations") from err
67-
68-
# for thisPermutation in permutations:
69-
# configItems = {}
70-
# for item in thisPermutation:
71-
# name = item[0]
72-
# value = item[1]
73-
# configItems[name] = value
74-
# configItems.update(constants)
75-
# configDict[f'config{configIdNumber}'] = ConfigData(data=configItems)
76-
# explogger.info(f'Generated config {configIdNumber}')
77-
# configIdNumber += 1
78-
79-
# explogger.info("Finished generating configs")
80-
# experiment.configs = configDict
81-
# return configIdNumber
82-
8341
def generate_config_files(experiment: ExperimentData):
8442
constants = {}
8543
parameters = {}

0 commit comments

Comments
 (0)