acsicuib / YAFS

Yet Another Fog Simulator (YAFS)
MIT License
98 stars 72 forks source link

'Topology' object has no attribute 'write' #47

Closed subwayi closed 2 years ago

subwayi commented 3 years ago

Hi @wisaaco,

I would like to do the simulation about Fog server placement. So I do try this "FogTorchPI-Integration" example, and got the following info. :

sys:1: FutureWarning: The load function will merged with load_all_node_attr function Traceback (most recent call last): File "main.py", line 233, in main(simulated_time=100000) File "main.py", line 115, in main t.write("network.gexf") AttributeError: 'Topology' object has no attribute 'write'

I trace that "Topology" was imported from yafs.topology. Should I modify yafs.topology of other setting to fix the error?

Thanks.