acsicuib / YAFS

Yet Another Fog Simulator (YAFS)
MIT License
101 stars 73 forks source link

m.load_results in FogCenrality not found #39

Closed roshangol closed 3 years ago

roshangol commented 3 years ago

I try to run analyse_resulte.py in example/FogCenrality but metrics module not have load_results. Please help me to run this code. Thanks

wisaaco commented 3 years ago

Hello, You can use Pandas to load the models.
Change this code:

            m.load_results("results_exp/results_exp_%s_%i_%s" % (topo,size,f))
            df,dl = m.get()

and use this:

            dl = pd.read_csv("results_exp/results_exp_%s_%i_%s_link.csv" % (topo,size,f))

Note: Please, take care of the file name in results_exp folder.

roshangol commented 3 years ago

@wisaaco thanks. Your answer solve my problem.