Update for 04-17-22

This commit is contained in:
Eduardo Cueto-Mendoza 2022-04-17 17:18:41 +01:00
parent c63d8e6dba
commit 342c064a8b
1 changed files with 20 additions and 4 deletions

View File

@ -4,8 +4,24 @@ import pickle
import numpy as np import numpy as np
from warnings import warn from warnings import warn
c = 1.0 with open("frq", "r") as file:
pickle_name = "freq_wattdata_"+str(c)+".pkl" frq = int(file.read())
with open("bay", "r") as file:
bay = int(file.read())
if frq == 1:
model_t = "freq"
with open("tmp", "r") as file:
size = float(file.read())
if bay == 1:
model_t = "bayes"
with open("tmp", "r") as file:
wide = int(file.read())
pickle_name = "{}_wattdata_{}.pkl".format(model_t,size)
#print("GPU energy file config: {}".format(pickle_name))
def get_sample_of_gpu(): def get_sample_of_gpu():
from re import sub, findall from re import sub, findall
@ -48,7 +64,7 @@ if __name__ == '__main__':
pickle.dump(dataDump, f) pickle.dump(dataDump, f)
except EOFError: except EOFError:
warn('Pickle ran out of space') warn('Pickle ran out of space')
c += 0.01 size += 0.01
finally: finally:
f.close() f.close()