params: Fix the memory bandwidth parameter
This commit is contained in:
parent
3d2e7797cc
commit
4afdc40d70
|
@ -892,7 +892,7 @@ class NetworkBandwidth(float,ParamValue):
|
|||
|
||||
class MemoryBandwidth(float,ParamValue):
|
||||
cxx_type = 'float'
|
||||
def __new__(self, value):
|
||||
def __new__(cls, value):
|
||||
# we want the number of ticks per byte of data
|
||||
val = convert.toMemoryBandwidth(value)
|
||||
return super(cls, MemoryBandwidth).__new__(cls, val)
|
||||
|
|
Loading…
Reference in a new issue