Commit c31a8f61 authored by Gonzalo Belcredi's avatar Gonzalo Belcredi

importlib

parent 456ff5f0
import numpy as np import numpy as np
import importlib import importlib
try: import config
importlib.reload(config) importlib.reload(config)
except:
import config
class Channel: class Channel:
def __init__(self, ChannelId, NumberNodes, Capacity, SlopeLin, SlopeSat): def __init__(self, ChannelId, NumberNodes, Capacity, SlopeLin, SlopeSat):
self.Capacity = Capacity self.Capacity = Capacity
......
...@@ -5,11 +5,8 @@ from time import sleep ...@@ -5,11 +5,8 @@ from time import sleep
import objects import objects
import node import node
import importlib import importlib
try: import config
importlib.reload(config) importlib.reload(config)
except:
import config
import utils import utils
StorageObj = objects.StorageObj StorageObj = objects.StorageObj
......
import numpy as np import numpy as np
import importlib import importlib
try: import config
importlib.reload(config) importlib.reload(config)
except:
import config
import math import math
import objects import objects
import packet import packet
......
...@@ -2,10 +2,8 @@ import channel ...@@ -2,10 +2,8 @@ import channel
import storage import storage
import stats import stats
import importlib import importlib
try: import config
importlib.reload(config) importlib.reload(config)
except:
import config
import numpy as np import numpy as np
......
import importlib import importlib
try: import config
importlib.reload(config) importlib.reload(config)
except:
import config
import numpy as np import numpy as np
......
import random import random
import importlib import importlib
try: import config
importlib.reload(config) importlib.reload(config)
except:
import config
import numpy as np import numpy as np
......
import importlib import importlib
try: import config
importlib.reload(config) importlib.reload(config)
except:
import config
import numpy as np import numpy as np
import math import math
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment