Helper functions
Color loggers¶
color.purple|"msg1"|"0000123"
print(color.blue("123"))
File, log, data, directory handler¶
Test on the data tracker¶
etrack = emberTracker("testmodel")
This is how we record the data within other codes
for i in range(10):
etrack({"col1":i,"col2":i*2,"col3":"hahahha"})
Preview log file
!cat {etrack.log_path}
Read log as dataframe
etrack.df
!rm {etrack.log_path}
Save/ Get JSON data¶
Save dictionary to json data
etrack["about_this_model"]= {
"property1":1,
"property2":False,
"property3":
{"size":100,
"speed":200}
}
Read this meta data from json file
etrack["about_this_model"]["property2"]